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