1 instantiation of ObjectStateManager
System.Data.Entity (1)
System\Data\Objects\ObjectContext.cs (1)
343
_cache = new
ObjectStateManager
(_workspace);
36 references to ObjectStateManager
System.Data.Entity (36)
System\Data\Common\Internal\Materialization\Shaper.cs (6)
306
ObjectStateManager
manager = Context.ObjectStateManager;
309
if (!
ObjectStateManager
.TryUpdateExistingRelationships(this.Context, this.MergeOption, associationSet, sourceMember, sourceKey, wrappedEntity, targetMember, targetKey, /*setIsLoaded*/ true, out newEntryState))
328
needNewRelationship = !
ObjectStateManager
.TryUpdateExistingRelationships(this.Context,
376
ObjectStateManager
.AddEntityToCollectionOrReference(
711
ObjectStateManager
.RemoveRelationships(Context, MergeOption, associationSet, sourceKey, sourceMember);
732
int count =
ObjectStateManager
.UpdateRelationships(this.Context, this.MergeOption, (AssociationSet)relatedEnd.RelationshipSet, sourceMember, sourceKey, wrappedSource, targetMember, (List<T_TargetEntity>)spannedEntities, true);
System\Data\Objects\DataClasses\EntityReference.cs (4)
203
ObjectStateManager
manager = this.ObjectContext.ObjectStateManager;
473
ObjectStateManager
stateManager = ObjectContext.ObjectStateManager;
574
ObjectStateManager
stateManager = ObjectContext.ObjectStateManager;
632
ObjectStateManager
stateManager = ObjectContext.ObjectStateManager;
System\Data\Objects\DataClasses\EntityReference_TResultType.cs (2)
196
ObjectStateManager
.RemoveRelationships(ObjectContext, mergeOption, (AssociationSet)RelationshipSet, sourceKey, (AssociationEndMember)FromEndProperty);
282
ObjectStateManager
manager = this.ObjectContext.ObjectStateManager;
System\Data\Objects\DataClasses\RelatedEnd.cs (2)
800
ObjectStateManager
.UpdateRelationships(this.ObjectContext, mergeOption, (AssociationSet)RelationshipSet, (AssociationEndMember)FromEndProperty, sourceKey, _wrappedOwner, (AssociationEndMember)ToEndMember, collection, setIsLoaded);
864
ObjectStateManager
stateManager = ObjectContext.ObjectStateManager;
System\Data\Objects\EntityEntry.cs (4)
59
internal EntityEntry(IEntityWrapper wrappedEntity, EntityKey entityKey, EntitySet entitySet,
ObjectStateManager
cache,
101
internal EntityEntry(EntityKey entityKey, EntitySet entitySet,
ObjectStateManager
cache, StateManagerTypeMetadata typeMetadata)
552
ObjectStateManager
osm = this.ObjectStateManager;
3483
ObjectStateManager
stateManager = _cache;
System\Data\Objects\Internal\EntityWrapperFactory.cs (2)
211
internal static IEntityWrapper WrapEntityUsingStateManager(object entity,
ObjectStateManager
stateManager)
226
internal static IEntityWrapper WrapEntityUsingStateManagerGettingEntry(object entity,
ObjectStateManager
stateManager, out EntityEntry existingEntry)
System\Data\Objects\ObjectContext.cs (2)
142
private
ObjectStateManager
_cache;
337
public
ObjectStateManager
ObjectStateManager
System\Data\Objects\ObjectStateEntry.cs (3)
34
internal
ObjectStateManager
_cache;
41
internal ObjectStateEntry(
ObjectStateManager
cache, EntitySet entitySet, EntityState state)
57
public
ObjectStateManager
ObjectStateManager
System\Data\Objects\ObjectStateManager.cs (6)
1015
ObjectStateManager
manager = context.ObjectStateManager;
1143
ObjectStateManager
.RemoveRelatedEndsAndDetachRelationship(deletedEntry, true);
1181
ObjectStateManager
manager = context.ObjectStateManager;
1319
ObjectStateManager
.AddEntityToCollectionOrReference(
1380
ObjectStateManager
cache = relationshipEntry.ObjectStateManager;
1387
private static void UnloadReferenceRelatedEnds(
ObjectStateManager
cache, RelationshipEntry relationshipEntry, EntityKey sourceEntityKey, string targetRoleName)
System\Data\Objects\ObjectViewListener.cs (4)
55
ObjectStateManager
cache = _dataSource as
ObjectStateManager
;
68
ObjectStateManager
cache = _dataSource as
ObjectStateManager
;
System\Data\Objects\RelationshipEntry.cs (1)
35
internal RelationshipEntry(
ObjectStateManager
cache, EntityState state, RelationshipWrapper relationshipWrapper)