New Posts New Posts RSS Feed: Could primary key/entity key value been modified?
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

Could primary key/entity key value been modified?

 Post Reply Post Reply
Author
Suah View Drop Down
Newbie
Newbie
Avatar

Joined: 06-Jul-2009
Posts: 16
Post Options Post Options   Quote Suah Quote  Post ReplyReply Direct Link To This Post Topic: Could primary key/entity key value been modified?
    Posted: 20-Aug-2009 at 9:50pm
Could primary key value/entity key value been modified?

My invoice is created with negative value INV_NO, and want to change it to be positive after posting?
Maybe I just create a new field to indicate the status instead of using this?
Back to Top
davidklitzke View Drop Down
IdeaBlade
IdeaBlade
Avatar

Joined: 14-Jun-2007
Posts: 715
Post Options Post Options   Quote davidklitzke Quote  Post ReplyReply Direct Link To This Post Posted: 26-Aug-2009 at 11:21am
Typically, primary keys are negative numbers that are converted by the IIdGenerator to positive values when they are saved
 
If you want the conversion to happen before the Save, you can use the ForceIdFixup method of the Entity Manager.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down