Base:
property
Entity
System.Data.Objects.ObjectStateEntry.Entity
55 references to Entity
System.Data.Entity (55)
System\Data\Common\Internal\Materialization\Shaper.cs (1)
746Debug.Assert(null != existingEntry.Entity, "ObjectStateEntry without Entity");
System\Data\Objects\DataClasses\RelatedEnd.cs (2)
940if (null == stateEntry || !Object.ReferenceEquals(stateEntry.Entity, wrappedEntity.Entity)) 1576Debug.Assert(cacheEntry == null || cacheEntry.Entity == wrappedEntity.Entity,
System\Data\Objects\EntityEntry.cs (24)
87_requiresScalarChangeTracking = Entity != null && !(Entity is IEntityWithChangeTracker); 89_requiresComplexChangeTracking = Entity != null && 91(WrappedEntity.IdentityType != Entity.GetType() && 94_requiresAnyChangeTracking = Entity != null && 95(!(Entity is IEntityWithRelationships) || 445Debug.Assert(Entity != null, "Non-relationship entries should have a non-null entity."); 1494Debug.Assert(this.Entity is IEntityWithChangeTracker, "for POCO objects the snapshot should contain all original values"); 1601tmpChangingObject = this.Entity; 1602if (WrappedEntity.IdentityType != Entity.GetType() && // Is a proxy 1603Entity is IEntityWithChangeTracker && // Is a full proxy 1691this.AddComplexObjectSnapshot(this.Entity, i, currentValue); 1794throw new InvalidOperationException(System.Data.Entity.Strings.ObjectStateEntry_ComplexObjectUsedMultipleTimes(this.Entity.GetType().FullName, complexObject.GetType().FullName)); 1826var oldComplexValue = this.GetComplexObjectSnapshot(this.Entity, ordinal); 1854this.UpdateComplexObjectSnapshot(member, this.Entity, ordinal, currentValue); 2148throw new EntityException(System.Data.Entity.Strings.ObjectStateEntry_UnableToEnumerateCollection(n.Name, this.Entity.GetType().FullName)); 2248Debug.Assert(!(this.Entity is IEntityWithRelationships), "Entity shouldn't implement IEntityWithRelationships"); 2271throw new EntityException(System.Data.Entity.Strings.ObjectStateEntry_UnableToEnumerateCollection(n.Name, this.Entity.GetType().FullName)); 3191_cache.OnObjectStateManagerChanged(CollectionChangeAction.Add, Entity); 3206_cache.OnObjectStateManagerChanged(CollectionChangeAction.Add, Entity); 3219_cache.OnObjectStateManagerChanged(CollectionChangeAction.Add, Entity); 3354throw EntityUtil.EntitiesHaveDifferentType(this.Entity.GetType().FullName, wrappedCurrentEntity.Entity.GetType().FullName); 3382throw EntityUtil.EntitiesHaveDifferentType(this.Entity.GetType().FullName, wrappedOriginalEntity.Entity.GetType().FullName); 3490_cache.TransactionManager.EntityBeingReparented = Entity;
System\Data\Objects\Internal\SnapshotChangeTrackingStrategy.cs (1)
59if (Object.ReferenceEquals(target, entry.Entity))
System\Data\Objects\ObjectContext.cs (11)
571if (!Object.ReferenceEquals(existingEntry.Entity, wrappedEntity.Entity)) 631Debug.Assert((object)existingEntry.Entity == (object)entity, "FindEntityEntry should return null if existing entry contains a different object."); 918return (TEntity)ose.Entity; 970throw EntityUtil.EntitiesHaveDifferentType(ose.Entity.GetType().FullName, originalEntity.GetType().FullName); 980return (TEntity)ose.Entity; 1012Debug.Assert((object)existingEntry.Entity == (object)entity, "FindEntityEntry should return null if existing entry contains a different object."); 1166Debug.Assert(!Object.ReferenceEquals(entry.Entity, wrappedEntity.Entity)); 1715if (cacheEntry == null || !object.ReferenceEquals(cacheEntry.Entity, entity)) 1764!object.ReferenceEquals(cacheEntry.Entity, entity) || 1765cacheEntry.Entity == null) // this condition includes key entries and relationship entries 2479value = entry.Entity;
System\Data\Objects\ObjectStateManager.cs (16)
392if (existingEntry.Entity != wrappedObject.Entity) 442OnObjectStateManagerChanged(CollectionChangeAction.Add, newEntry.Entity); 674OnObjectStateManagerChanged(CollectionChangeAction.Add, keyEntry.Entity); 1442OnObjectStateManagerChanged(CollectionChangeAction.Add, newEntry.Entity); 1688Debug.Assert(!(entry.Entity is IEntityWithKey), "_keylessEntityStore contains an entry that implement IEntityWithKey"); 1719if (null != entry.Entity && //Skip span stub key entry 1720!(entry.Entity is IEntityWithKey)) 1724if (_keylessEntityStore.TryGetValue(entry.Entity, out keylessEntry)) 1961Debug.Assert(entry.Entity != null, "must have entity, can't be entity stub in added state"); 2611if (entry != null && !object.ReferenceEquals(entity, entry.Entity)) 2748OnEntityDeleted(CollectionChangeAction.Remove, entry.Entity); 2749OnObjectStateManagerChanged(CollectionChangeAction.Remove, entry.Entity); 2851if (null != entry.Entity && !(entry.Entity is IEntityWithKey)) 2857if (!_keylessEntityStore.ContainsKey(entry.Entity)) 2859_keylessEntityStore.Add(entry.Entity, entry);