DbEntityEntry<TEntity>.Equals Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Returns
true
if the specified Object is equal to this instance; otherwise, false
.
- Attributes
Applies to
Entity Framework