IsNotPersistable property

Indicates that a property or field is not persistable to the database and should be ignored by ObjectFactory when running queries.

Namespace: ReFlex.Data namespace
Assembly: ReFlex.Data.dll

Syntax

public bool IsNotPersistable = false;

Remarks

Default is false.

Examples

// full name is made up of two persistable fields FirstName and LastName
// and does not have a place in the database table
public class Contact
{
    public int ContactID;

    [RelationalMemberInfo(Length = 50)]
    public string FirstName;

    [RelationalMemberInfo(Length = 50)]
    public string LastName;

    [RelationalMemberInfo(IsNotPersistable = true)]
    public string FullName
    {
        get { return FirstName + " " + LastName; }
    }
}