manually setting primary key value

Posts   
 
    
Posts: 15
Joined: 02-Jan-2010
# Posted on: 05-Jan-2010 22:48:36   

Hi; I'm working on a windows application, I use C# 3.5 and llblgen 2.6 eval in adapter mode.

In the SQL 2005 database, primary fields of the table to setting Non-increment. I'm manually setting PK fields value via stored procedure.

When I do saving new entity, first getting PK value via SP and setting to return value with manually.

is this way any problem with LLBLGen?

Regards,

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 06-Jan-2010 06:34:18   

No there's no problem. Your code will look like:

// retrieve my SP

// set the PK into my entity

// save the entity

These links may be useful: - Calling a stored procedure - Creating a new entity

David Elizondo | LLBLGen Support Team