Прочитај на енглеском Уреди

Делите путем


UpdateCheck Enum

Definition

Specifies when objects are to be tested for concurrency conflicts.

C#
public enum UpdateCheck
Inheritance
UpdateCheck

Fields

Name Value Description
Always 0

Always check. This is the default unless IsVersion is true for a member.

Never 1

Never check.

WhenChanged 2

Check only when the object has been changed.

Examples

C#
[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();
    }
    }
}

Remarks

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

Applies to

Производ Верзије
.NET Framework 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1