No entity constructor with primary key field.

Posts   
 
    
tahoepete
User
Posts: 13
Joined: 30-Mar-2007
# Posted on: 30-Mar-2007 20:01:03   

I am having trouble getting an entity generated with a constructor that takes a primary key field. I am using LLBLGen Pro Version 1.0.2005.1 Final (July 6th,2006).

I originally added the table without making the field a primary key. I changed the field to an identity field that is a primary key, refreshed the catalog and regenerated, but I didn't get the constructor that accepts the field.

Then I deleted the table from the project, shut the designer down, restarted the designer, refreshed the catalog, added the table back to the project, and regenerated, but I still don't get the constructor I need. I have gone thru this process as many different ways as I can think of.

Am I missing something or is there a way to get this constructor generated?

Thanks for your help!

Pete

tahoepete
User
Posts: 13
Joined: 30-Mar-2007
# Posted on: 30-Mar-2007 20:12:29   

Forgot to add, I am using Self Servicing , two class scenario (Full/Safe) Vs.Net 2005 (1.0.2005.1.102...) with template C# template set for SqlServer(1.0.2005.1)(1.0.2005.1.111705)

The database is Sql Server 2005.

tahoepete
User
Posts: 13
Joined: 30-Mar-2007
# Posted on: 30-Mar-2007 20:25:14   

I got this to work. After studying the log created when it generates the code, I realized the class wasn't getting regenerated. I deleted the code files, regenerated, and got the constructor I was looking for.

Thanks!