EntityFramework-Effort
EntityFramework-Effort copied to clipboard
DatabaseGeneratedOption.None Ignored
I have the following class:
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?