Hi  all,
Is it possible to get the Primary Key Column value before Context.SaveChanges()method call in code first entity framework mvc.
I need to insert a new row in Table1 then it should return Identity value of that row.
I need to insert a new row of child Table2 by passing returned Identity value of Primary Table1.
My sequence should be like below.
InsertRecord(Table1)=>Get Primary Table Identity Value(PK1_Table1)=>InsertRecord(PK1_Table1,Table2)=>Context.SaveChanges() ?

Thank You

Go to the complete details ...