Accessing primary key of new obj after a call to SaveChanges
Posted: Fri 20 Jun 2008 01:57
I'm using OraDirect.NET in the context of the ADO.NET Entity Framework. Having created a new object, and called "SaveChanges" on the ObjectContext, I want to obtain that objects primary key value. On the database, this is generated using a sequence and trigger.
It would be nice if I could easily get access to the primary key, following an insert. Do you know of a way?
It would be nice if I could easily get access to the primary key, following an insert. Do you know of a way?