I\'m using the new EF code first to one project of mine, and i\'m getting a weird error, my mode is:
abstract class Member
{
public virtual int MemberId;
..
I also had an issue with duplicate keys. For me the reason was that I mistakenly used
Id = new Guid()
instead of
Id = Guid.NewGuid()
in a factory method for initializing my database.