You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public Message
{
[Key]
public long GId;
[DatabaseGenerated(DatabaseGeneratedOption.None)]
public int Id;
}
I insert multiple messages with multiple Id's. After SaveChanges() all values in the fields Id are resetted to 1. GId is properly set and incremented after each insert, but Id is ALWAYS 1. It is impossible to change the value in this case!
Any known workaround for this?
The text was updated successfully, but these errors were encountered:
I have the following class:
I insert multiple messages with multiple Id's. After SaveChanges() all values in the fields Id are resetted to 1. GId is properly set and incremented after each insert, but Id is ALWAYS 1. It is impossible to change the value in this case!
Any known workaround for this?
The text was updated successfully, but these errors were encountered: