Selfservicing and Save

Posts   
 
    
Valemus avatar
Valemus
User
Posts: 37
Joined: 09-Jan-2018
# Posted on: 09-Jan-2018 18:17:53   

Hello! I'm testing LLBLGen for the first time (version 5.3) I've created some Entities and Relations for testing, using a Model-first workflow.

I generated the code using the following parameters:

  • Language: C#
  • target platform: .Net 4.5.2
  • template group: SelfServicing
  • Selected preset: SD.Prests.Selfservicing.General

Everything is okay, I have a working project. I've included this project in my Solution and from another Project I reference the generated one (this seems to me a good way to work). In my project I don't even need to use Nuget, since the two required references are automaticaly added.

Ok, I can instantiate Entities, connect to the DB, but... the Entities in the generated code do not have methods like .Save, .Delete, .Update ... disappointed

Why? Do someone have an idea of what's going on? Thank you.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 10-Jan-2018 06:55:37   

Did you reference the **ORMSupportClasses **assemblies in your custom project (not the generated one)?

All entity classes derive from a central, generated base class called CommonEntityBase. This class is the base class for all generated entity classes and it derives from the class EntityBase, which is located in the ORMSupportClasses assembly.

For more information see Compiling the code... and Using the entity classes.

David Elizondo | LLBLGen Support Team
Valemus avatar
Valemus
User
Posts: 37
Joined: 09-Jan-2018
# Posted on: 10-Jan-2018 08:54:57   

In the references I have (automatically):

  • SD.LLBLGenPro.DQE.SqlServer
  • SD.LLBLGenPro.ORMSupportClasses
Valemus avatar
Valemus
User
Posts: 37
Joined: 09-Jan-2018
# Posted on: 10-Jan-2018 09:43:00   

Ok, nevermind, that's weird...

I had to close and reopen Visual Studio and now the missing methods are there flushed

Thank you!