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?
Accessing primary key of new obj after a call to SaveChanges
-
- Posts: 43
- Joined: Thu 19 Jun 2008 14:30