Export (0) Print
Expand All

UpdateCheck Enumeration

Specifies when objects are to be tested for concurrency conflicts.

Namespace:  System.Data.Linq.Mapping
Assembly:  System.Data.Linq (in System.Data.Linq.dll)

public enum UpdateCheck

Member nameDescription
AlwaysAlways check. This is the default unless IsVersion is true for a member.
NeverNever check.
WhenChangedCheck only when the object has been changed.

The code example after the table specifies that HomePage objects should never be tested.

[Column(Storage="_HomePage", DbType="NText", UpdateCheck=UpdateCheck.Never)]
public string HomePage
{
    get
    {
        return this._HomePage;
    }
    set
    {
        if ((this._HomePage != value))
	{
 	    this.OnHomePageChanging(value);
	    this.SendPropertyChanging();
            this._HomePage = value;
	    this.SendPropertyChanged("HomePage");
            this.OnHomePageChanged();
	}
    }
}

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5

.NET Framework Client Profile

Supported in: 4
Show:
© 2015 Microsoft