Entity Framework Core 2.0: How to configure abstract base class once
问题 I have a base model: public abstract class Status { public string updateUserName { get; set; } } Then a model which extends the base model defined above: public class Item : Status { public int Id { get; set; } public string Description { get; set; } } Then I have defined configuration classes for each: public class ItemConfiguration : IEntityTypeConfiguration<Item> { public void Configure(EntityTypeBuilder<Item> builder) { builder.ToTable("Item", "dbo").HasKey(c => c.Id); builder.Property(c