You have two alternatives:
-
Using
NotMappedAttribute:public class MyEntity { public int Id { get; set; } [NotMapped] public string DeprecatedFeature { get; set; } } -
Using FluentAPI:
modelBuilder.Entity<MyEntity>().Ignore(c => c.DeprecatedFeature);