Entity Framework Code First - Cannot insert duplicate key in object 'db'

前端 未结 4 1447
被撕碎了的回忆
被撕碎了的回忆 2021-01-25 16:46

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;
  ..         


        
4条回答
  •  礼貌的吻别
    2021-01-25 17:19

    I just tested it and tables of derived types in TPC (table per concrete type) inheritance don't have PK defined as identity in EF 4.1 RC.

提交回复
热议问题