/// <summary>
 /// This method allows to entities to be tested for equality in a non-standard way.
 /// It is non-standard because it doesn't need to be as robust as a general purpose
 /// Equals implementation, and because it should never be used by framework code itself
 /// since this could risk causing framework behavior to change.
 /// </summary>
 /// <param name="other">The entity to compare.</param>
 /// <returns>True if they represent the same entity; false otherwise.</returns>
 public virtual bool EntityEquals(BaseTypeForLinq other)
 {
     return Id == other.Id;
 }
示例#2
0
 /// <summary>
 /// This method allows to entities to be tested for equality in a non-standard way.
 /// It is non-standard because it doesn't need to be as robust as a general purpose
 /// Equals implementation, and because it should never be used by framework code itself
 /// since this could risk causing framework behavior to change.
 /// </summary>
 /// <param name="other"> The entity to compare. </param>
 /// <returns> True if they represent the same entity; false otherwise. </returns>
 public virtual bool EntityEquals(BaseTypeForLinq other)
 {
     return(Id == other.Id);
 }