c# - Entity Framework - SaveChanges() doesn't get the generated Identity key -


I am using the framework of organizations in my project and it has been a nightmare!

I have a table named "I have a form in a SQL DB."

The form has an ID that is PK and identifier (it automatically increases).

This time I am doing this:

  dim form as new units 1 as int32 dim dbform 1 6 6 6 new look dbform.AddToForm696 (Form) dbform.SaveChanges () id = form.ID  

A id and form. The ID was first generated after inserting it, but now it has only 0.

I do not know what happened to stop working for it.

I have had to change the name to insert, remove, and update stored procedures for several tables and so I had to map it back again. Maybe I did something wrong but I looked back in time and time and everything was fine.

Do anyone have any clues?

I think the issue has been resolved with patches if you still do not work You should try to delete and add your data model. There are less problems with EF now.


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -