I\'m developing an ASP.net application using Entity Framework. I\'m using DetailsView to insert data into database. There is a table as Client and its
DetailsView
Client
After you have inserted the entity it should be updated so that the property that maps to the primary key in the database has the new PK value.
Like MyObject.Id will give you the new Id
MyObject.Id