Implemented interface member:
method
Equals
System.IEquatable<T>.Equals(T)
28 references to Equals
System.Data.Entity (27)
System\Data\Common\Internal\Materialization\Shaper.cs (2)
155Debug.Assert(existingEntry.EntityKey.Equals(entityKey), "Found ObjectStateEntry with wrong EntityKey"); 203Debug.Assert(existingEntry.EntityKey.Equals(entityKey), "Found ObjectStateEntry with wrong EntityKey");
System\Data\Objects\EntityEntry.cs (9)
664Debug.Assert(EntityKey.Equals(item.RelationshipWrapper.Key0) || EntityKey.Equals(item.RelationshipWrapper.Key1), "entity key doesn't match"); 674(!object.ReferenceEquals(this.EntityKey, current.Key1) && this.EntityKey.Equals(current.Key0)); 680Debug.Assert(EntityKey.Equals(current.RelationshipWrapper.Key0), "entity key didn't match"); 686Debug.Assert(EntityKey.Equals(current.RelationshipWrapper.Key1), "entity key didn't match"); 805Debug.Assert(_entityEntry.EntityKey.Equals(relationshipEnd.Key0) || _entityEntry.EntityKey.Equals(relationshipEnd.Key1), "entity key mismatch"); 3476needToSetRef = !foreignKey.Equals(existingPrincipalKey); 3936else if (!currentKey.Equals(originalKey)
System\Data\Objects\ObjectStateManager.cs (6)
1561if (!relationship.RelationshipWrapper.Key0.Equals(relationship.RelationshipWrapper.Key1)) 1575Debug.Assert(key.Equals(entry.EntityKey), "EntityKey mismatch"); 1586if (!relationship.RelationshipWrapper.Key0.Equals(relationship.RelationshipWrapper.Key1)) 1601Debug.Assert(key.Equals(entry.EntityKey), "EntityKey mismatch"); 2116Debug.Assert(!entry.EntityKey.Equals(value), "the keys should not be equal"); 2119if (entityKey == null || value.Equals(entityKey))
System\Data\Objects\RelationshipEntry.cs (8)
442if (oldKey.Equals(Key0)) 444if (oldKey.Equals(Key1)) 708Debug.Assert(entityKey.Equals(Key0) || entityKey.Equals(Key1), "EntityKey mismatch"); 709return (entityKey.Equals(Key0) ? NextKey0 : NextKey1); 715Debug.Assert(entityKey.Equals(Key0) || entityKey.Equals(Key1), "EntityKey mismatch"); 716if (entityKey.Equals(Key0))
System\Data\Objects\RelationshipWrapper.cs (2)
126this.Key0.Equals(wrapper.Key0) && 127this.Key1.Equals(wrapper.Key1)));
System.Data.Services (1)
System\Data\Services\Providers\ObjectContextServiceProvider.cs (1)
2443!key.Equals(this.ObjectContext.ObjectStateManager.GetObjectStateEntry(propertyValue).EntityKey))