/// <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 DbSetInitializer( [NotNull] IDbSetFinder setFinder, [NotNull] IDbSetSource setSource, [NotNull] IDbQuerySource querySource) { _setFinder = setFinder; _setSource = setSource; _querySource = querySource; }
/// <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 DbContextDependencies( [NotNull] ICurrentDbContext currentContext, [NotNull] IChangeDetector changeDetector, [NotNull] IDbSetSource setSource, [NotNull] IDbQuerySource querySource, [NotNull] IEntityFinderSource entityFinderSource, [NotNull] IEntityGraphAttacher entityGraphAttacher, [NotNull] IModel model, [NotNull] IAsyncQueryProvider queryProvider, [NotNull] IStateManager stateManager, [NotNull] IDiagnosticsLogger <DbLoggerCategory.Update> updateLogger, [NotNull] IDiagnosticsLogger <DbLoggerCategory.Infrastructure> infrastructureLogger) { ChangeDetector = changeDetector; SetSource = setSource; QuerySource = querySource; EntityGraphAttacher = entityGraphAttacher; Model = model; QueryProvider = queryProvider; StateManager = stateManager; UpdateLogger = updateLogger; InfrastructureLogger = infrastructureLogger; EntityFinderFactory = new EntityFinderFactory(entityFinderSource, stateManager, setSource, currentContext.Context); }
public DbContextDependenciesEx(ICurrentDbContext currentContext, IChangeDetector changeDetector, IDbSetSource setSource, IDbQuerySource querySource, IEntityFinderSource entityFinderSource, IEntityGraphAttacher entityGraphAttacher, IModel model, IAsyncQueryProvider queryProvider, IStateManager stateManager, IDiagnosticsLogger <DbLoggerCategory.Update> updateLogger, IDiagnosticsLogger <DbLoggerCategory.Infrastructure> infrastructureLogger) { inner = new DbContextDependencies(currentContext, changeDetector, setSource, querySource, entityFinderSource, entityGraphAttacher, model, queryProvider, new StateManagerWrapper(stateManager), updateLogger, infrastructureLogger); }