Skip to content
MaceWindu edited this page Feb 26, 2018 · 6 revisions

Mapping

How can I use calculated fields?

You need to mark them to be ignored during insert or update operations, e.g. using ColumnAttribute attribute:

public class MyEntity
{
    [Column(SkipOnInsert = true, SkipOnUpdate = true)]
    public int CalculatedField { get; set; }
}