How to ignore a property when using Entity Framework Code First [duplicate] March 21, 2023 by Tarik Add the [System.ComponentModel.DataAnnotations.Schema.NotMapped] attribute to the property.