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;
..
Does it work if you do the following:
x = ctx.Users.Create();
x.Name = "SomeUser";
ctx.SaveChanges();
y = ctx.Users.Create();
y.Name = "SomeUser2";
ctx.SaveChanges();
You should try to attach your entity before you modify it.