Knight Data Access Layer
Ignoring Properties
Basic Tasks C# > Mapping > Ignoring Properties

By default properties that are read only or write only or is not a supported type will automatically be ignored.  Class properties that you do not wish to save to a corresponding table in the database can be marked as ignored as an attribute.  In code, simply do not map the property to ignore it.

 

Example:

[IgnoreColumn]

public string CreditCardNumber { get; set; }