I am using the Entity Framework for inserting a row into my sql database. If I was to be using a stored procedure then I would be able to return the primary key for the record which I had inserted.
Am I able to do return the PK for the last my last record inserted using the Entity Framework?
After you have inserted the entity it should have been updated so that the property that maps to the primary key in the database has the new PK value.