public ConcreteDatabase( DbContextService <IModel> model, DataStoreCreator dataStoreCreator, DataStoreConnection connection, ILoggerFactory loggerFactory) : base(model, dataStoreCreator, connection, loggerFactory) { }
protected RelationalDatabase( [NotNull] DbContextService <IModel> model, [NotNull] DataStoreCreator dataStoreCreator, [NotNull] DataStoreConnection connection, [NotNull] ILoggerFactory loggerFactory) : base(model, dataStoreCreator, connection, loggerFactory) { }
public ConcreteMigrationsEnabledDatabase( DbContextService <IModel> model, DataStoreCreator dataStoreCreator, DataStoreConnection connection, Migrator migrator, ILoggerFactory loggerFactory) : base(model, dataStoreCreator, connection, migrator, loggerFactory) { }
protected MigrationsEnabledDatabase( [NotNull] DbContextService <IModel> model, [NotNull] DataStoreCreator dataStoreCreator, [NotNull] DataStoreConnection connection, [NotNull] Migrator migrator, [NotNull] ILoggerFactory loggerFactory) : base(model, dataStoreCreator, connection, loggerFactory) { Check.NotNull(migrator, "migrator"); _migrator = migrator; }
protected Database( [NotNull] DbContextService <IModel> model, [NotNull] DataStoreCreator dataStoreCreator, [NotNull] DataStoreConnection connection, [NotNull] ILoggerFactory loggerFactory) { Check.NotNull(model, "model"); Check.NotNull(dataStoreCreator, "dataStoreCreator"); Check.NotNull(connection, "connection"); Check.NotNull(loggerFactory, "loggerFactory"); _model = model; _dataStoreCreator = dataStoreCreator; _connection = connection; _logger = new LazyRef <ILogger>(loggerFactory.Create <Database>); }
// TODO: Make sure API docs say that return value indicates whether or not the database was deleted public virtual Task <bool> EnsureDeletedAsync(CancellationToken cancellationToken = default(CancellationToken)) { return(DataStoreCreator.EnsureDeletedAsync(Model, cancellationToken)); }
// TODO: Make sure API docs say that return value indicates whether or not the database was deleted public virtual bool EnsureDeleted() { return(DataStoreCreator.EnsureDeleted(Model)); }