How do I skip computred columns when getting properties like this? I can do it for NotMapped, but not sure about DatabaseGenerated(DatabaseGeneratedOption.Computed)
?
[DatabaseGenerated(DatabaseGeneratedOption.Computed)]
public bool AAUProcessing { get; set; }
Skip NotMapped and Computred Columns
var props = typeof(TK).GetProperties()
.Where(propertyInfo => !propertyInfo.GetCustomAttributes(typeof(NotMappedAttribute)).Any())
.ToArray();
Aucun commentaire:
Enregistrer un commentaire