3
如何在新的CTP中設置以下內容?首選CTP中的MapHierarchy()的替代方法5
modelBuilder.Entity<RequestBase>()
.MapHierarchy()
.Case<RequestBase>(b => new { b.Id, b.Comment, Discriminator = 0 })
.Case<Request1>(s => new { request1_Id = Column.Id, Discriminator = 1 })
.Case<Request2>(m => new { request2_Id = Mission.Id, m.Comment, m.Date, Discriminator = 2 })
.ToTable("dbo.Requests");