You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
E.g. int Id could be mapped to int Id in People and to string CustomerId in Customers
TPC:
modelBuilder.Entity<Person>().ToTable("People").InheritPropertyMapping(false);modelBuilder.Entity<Customer>().ToTable("Customers", t =>{t.Property(c =>c.Id).HasColumnName("CustomerId");});
Entity splitting:
modelBuilder.Entity<Customer>(cb =>{cb.ToTable("Customers");cb.SplitToTable("CustomerDetails", t =>{t.Property(c =>c.Id).HasColumnName("CustomerId");})};
Also allow to map a base property to the derived table in TPT
TPT:
modelBuilder.Entity<Person>().ToTable("People");modelBuilder.Entity<Customer>().ToTable("Customers", t =>{t.Property(c =>c.Id).HasColumnName("CustomerId");});