Share via


DbEntityEntry<TEntity>.Equals Method

Definition

Overloads

Equals(DbEntityEntry<TEntity>)

Determines whether the specified DbEntityEntry<TEntity> is equal to this instance. Two DbEntityEntry<TEntity> instances are considered equal if they are both entries for the same entity on the same DbContext.

Equals(Object)

Determines whether the specified Object is equal to this instance. Two DbEntityEntry<TEntity> instances are considered equal if they are both entries for the same entity on the same DbContext.

Equals(DbEntityEntry<TEntity>)

Determines whether the specified DbEntityEntry<TEntity> is equal to this instance. Two DbEntityEntry<TEntity> instances are considered equal if they are both entries for the same entity on the same DbContext.

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public bool Equals (System.Data.Entity.Infrastructure.DbEntityEntry<TEntity> other);
override this.Equals : System.Data.Entity.Infrastructure.DbEntityEntry<'Entity (requires 'Entity : null)> -> bool
Public Function Equals (other As DbEntityEntry(Of TEntity)) As Boolean

Parameters

other
DbEntityEntry<TEntity>

The DbEntityEntry<TEntity> to compare with this instance.

Returns

true if the specified DbEntityEntry<TEntity> is equal to this instance; otherwise, false .

Attributes

Applies to

Equals(Object)

Determines whether the specified Object is equal to this instance. Two DbEntityEntry<TEntity> instances are considered equal if they are both entries for the same entity on the same DbContext.

[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]
public override bool Equals (object obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean

Parameters

obj
Object

The Object to compare with this instance.

Returns

true if the specified Object is equal to this instance; otherwise, false .

Attributes

Applies to