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.
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();
	}
    }
}

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5

Community Additions

ADD
Show:
© 2014 Microsoft