/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public virtual void StartTracking(object entity, EntityTrackingInfo entityTrackingInfo) { if (!_valueBuffers.TryGetValue(entity, out var boxedValueBuffer)) { boxedValueBuffer = ValueBuffer.Empty; } entityTrackingInfo.StartTracking(_dependencies.StateManager, entity, (ValueBuffer)boxedValueBuffer); }
public virtual EntityTrackingInfo Create( QueryCompilationContext queryCompilationContext, QuerySourceReferenceExpression querySourceReferenceExpression, IEntityType entityType) { var trackingInfo = new EntityTrackingInfo( queryCompilationContext, querySourceReferenceExpression, entityType); return(trackingInfo); }
public virtual EntityTrackingInfo Create( QueryCompilationContext queryCompilationContext, QuerySourceReferenceExpression querySourceReferenceExpression, IEntityType entityType) { var trackingInfo = new EntityTrackingInfo( queryCompilationContext, querySourceReferenceExpression, entityType); return trackingInfo; }
public virtual void StartTracking(object entity, EntityTrackingInfo entityTrackingInfo) { object boxedValueBuffer; if (!_valueBuffers.TryGetValue(entity, out boxedValueBuffer)) { boxedValueBuffer = ValueBuffer.Empty; } entityTrackingInfo .StartTracking(_stateManager, entity, (ValueBuffer)boxedValueBuffer); foreach (var includedEntity in entityTrackingInfo.GetIncludedEntities(entity) .Where(includedEntity => _valueBuffers.TryGetValue(includedEntity.Entity, out boxedValueBuffer))) { includedEntity.StartTracking(_stateManager, (ValueBuffer)boxedValueBuffer); } }
/// <summary> /// This API supports the Entity Framework Core infrastructure and is not intended to be used /// directly from your code. This API may change or be removed in future releases. /// </summary> public virtual void StartTracking(object entity, EntityTrackingInfo entityTrackingInfo) { object boxedValueBuffer; if (!_valueBuffers.TryGetValue(entity, out boxedValueBuffer)) { boxedValueBuffer = ValueBuffer.Empty; } entityTrackingInfo .StartTracking(_stateManager, entity, (ValueBuffer)boxedValueBuffer); foreach (var includedEntity in entityTrackingInfo.GetIncludedEntities(entity) .Where(includedEntity => _valueBuffers.TryGetValue(includedEntity.Entity, out boxedValueBuffer))) { includedEntity.StartTracking(_stateManager, (ValueBuffer)boxedValueBuffer); } }