Disable Auto PK

Posts   
 
    
shekar
User
Posts: 327
Joined: 26-Mar-2010
# Posted on: 08-Apr-2011 12:21:54   

LLBLGEN 3.1 Rel 31st March .NET Framework 2.0 Windows Application Oracle 9i/10g MS ORACLE

  1. I have created sequences in DB
  2. In designer I have selected desired sequence for each entity
  3. During entitysave action, PK is generated automatically and inserted in DB

Everything fine till here.

In same scenario, is there any setting to disable auto PK insert and specify manual PK value during entity save action ?

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 08-Apr-2011 17:05:35   

If you assigned a sequence to the pk, then no. So the alternative for you is to remove the sequence from the pk field mapping, then regenerate, that makes it an entity you should set the PK field manually.

Frans Bouma | Lead developer LLBLGen Pro