UpdateCheck UpdateCheck UpdateCheck UpdateCheck Enum

Definición

Especifica cuándo se deben comprobar los objetos para detectar conflictos de simultaneidad.Specifies when objects are to be tested for concurrency conflicts.

public enum class UpdateCheck
public enum UpdateCheck
type UpdateCheck = 
Public Enum UpdateCheck
Herencia

Campos

Always Always Always Always 0

Siempre se comprueba.Always check. Este es el valor predeterminado, a menos que IsVersion sea true para un miembro.This is the default unless IsVersion is true for a member.

Never Never Never Never 1

Nunca se comprueba.Never check.

WhenChanged WhenChanged WhenChanged WhenChanged 2

Solo se comprueba cuando el objeto ha sufrido cambios.Check only when the object has been changed.

Ejemplos

[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();
	}
    }
}
<Column(Storage:="_HomePage", DbType:="NText", UpdateCheck:=UpdateCheck.Never)>  _
Public Property HomePage() As String
    Get
        Return Me._HomePage
    End Get
    Set(ByVal value As String)
        If ((Me._HomePage <> value)  _
            = false) Then
	    Me.OnHomePageChanging(value)
            Me.SendPropertyChanging
            Me._HomePage = value
            Me.SendPropertyChanged("HomePage")
            Me.OnHomePageChanged
        End If
    End Set
End Property

Comentarios

El ejemplo de código después de la tabla que especifica HomePage nunca deberían probarse los objetos.The code example after the table specifies that HomePage objects should never be tested.

Se aplica a