My entity classes don't have a Save() method

Posts   
 
    
Aglaia avatar
Aglaia
LLBLGen Pro Team
Posts: 535
Joined: 07-Sep-2003
# Posted on: 21-Aug-2007 13:18:24   

Question: When I generate code, I noticed that my entity classes don't have a Save() method and my typed list classes don't have a Fill() method. What's wrong?

Solution: You've chosen one of the Adapter generator configurations in the generator configuration screen but you expected SelfServicing code. To get SelfServicing code, select SelfServicing from the Template Group drop-down-list in the General Settings tab of the code generation window.

MTrinder
User
Posts: 1461
Joined: 08-Oct-2008
# Posted on: 14-Oct-2008 21:52:50   

Alternate Solution

You are using the SelfServicing templates but the project you are calling the generated code from does not have a reference to the ORMSupportClasses DLL and has not yet been built.

The .Save methods are inherited from base classes in the support dll, and so this needs to be referenced, and the project built, for these to be visible.