Freigeben über


DbEntityEntry<TEntity>.Equals-Methode (Object)

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Bestimmt, ob das angegebene Object gleich dieser Instanz ist. Zwei DbEntityEntry<TEntity>-Instanzen gelten als gleich, wenn beide Instanzen Einträge für die gleiche Entität im gleichen DbContext sind.

Namespace:  System.Data.Entity.Infrastructure
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
<EditorBrowsableAttribute(EditorBrowsableState.Never)> _
Public Overrides Function Equals ( _
    obj As Object _
) As Boolean
'Usage
Dim instance As DbEntityEntry 
Dim obj As Object 
Dim returnValue As Boolean 

returnValue = instance.Equals(obj)
[EditorBrowsableAttribute(EditorBrowsableState.Never)]
public override bool Equals(
    Object obj
)
[EditorBrowsableAttribute(EditorBrowsableState::Never)]
public:
virtual bool Equals(
    Object^ obj
) override
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
abstract Equals : 
        obj:Object -> bool 
[<EditorBrowsableAttribute(EditorBrowsableState.Never)>]
override Equals : 
        obj:Object -> bool
public override function Equals(
    obj : Object
) : boolean

Parameter

Rückgabewert

Typ: System.Boolean
true, wenn das angegebene Object dieser Instanz entspricht, andernfalls false.

Siehe auch

Verweis

DbEntityEntry<TEntity> Klasse

Equals-Überladung

System.Data.Entity.Infrastructure-Namespace