public EntityFrameworkCRUD() { dbManagerFactory = new EntityManagerFactory(); connectionManager = dbManagerFactory.GetConnectionManager(); commandManager = dbManagerFactory.GetCommandManager(); connection = connectionManager.GetConnection(); entities = new MyQQEntities(connection as EntityConnection); }
public RestoreDatabaseSqlServerConsoleTask( IConsole console, ICollectionProvider collectionProvider, IDbManagerFactory dbManagerFactory) { _console = console; _collectionProvider = collectionProvider; _dbManagerFactory = dbManagerFactory; }
public DropDatabaseDeploymentStep(DbProjectInfo projectInfo, DatabaseServer databaseServer, IDbManagerFactory dbManagerFactory) { Guard.NotNull(projectInfo, "projectInfo"); Guard.NotNull(databaseServer, "databaseServer"); Guard.NotNull(dbManagerFactory, "dbManager"); _projectInfo = projectInfo; _databaseServer = databaseServer; _dbManagerFactory = dbManagerFactory; }
public DropDbProjectDeploymentTask( IProjectInfoRepository projectInfoRepository, IEnvironmentInfoRepository environmentInfoRepository, IDbManagerFactory dbManagerFactory) : base(projectInfoRepository, environmentInfoRepository) { Guard.NotNull(dbManagerFactory, "dbManagerFactory"); _dbManagerFactory = dbManagerFactory; }
public CreateDatabaseDeploymentStep(DbProjectInfo projectInfo, DatabaseServer databaseServer, IDbManagerFactory dbManagerFactoryFactory) { Guard.NotNull(projectInfo, "projectInfo"); Guard.NotNull(databaseServer, "databaseServer"); Guard.NotNull(dbManagerFactoryFactory, "dbManagerFactory"); _projectInfo = projectInfo; _databaseServer = databaseServer; _dbManagerFactory = dbManagerFactoryFactory; }
public DeployDbProjectDeploymentTask( IProjectInfoRepository projectInfoRepository, IEnvironmentInfoRepository environmentInfoRepository, IArtifactsRepository artifactsRepository, IDbScriptRunnerFactory dbScriptRunnerFactory, IDbVersionProvider dbVersionProvider, IFileAdapter fileAdapter, IZipFileAdapter zipFileAdapter, IScriptsToRunSelector createScriptsToRunSelector, IMsSqlDatabasePublisher databasePublisher, IDbManagerFactory dbManagerFactory, IUserNameNormalizer userNameNormalizer, IDirectoryAdapter directoryAdapter) : base(projectInfoRepository, environmentInfoRepository) { Guard.NotNull(artifactsRepository, "artifactsRepository"); Guard.NotNull(dbVersionProvider, "dbVersionProvider"); Guard.NotNull(dbScriptRunnerFactory, "dbScriptRunnerFactory"); Guard.NotNull(fileAdapter, "fileAdapter"); Guard.NotNull(zipFileAdapter, "zipFileAdapter"); Guard.NotNull(createScriptsToRunSelector, "createScriptsToRunWebSelector"); Guard.NotNull(databasePublisher, "databasePublisher"); Guard.NotNull(dbManagerFactory, "dbManagerFactory"); Guard.NotNull(userNameNormalizer, "userNameNormalizer"); Guard.NotNull(directoryAdapter, "directoryAdapter"); _artifactsRepository = artifactsRepository; _dbScriptRunnerFactory = dbScriptRunnerFactory; _dbVersionProvider = dbVersionProvider; _fileAdapter = fileAdapter; _zipFileAdapter = zipFileAdapter; _createScriptsToRunSelector = createScriptsToRunSelector; _databasePublisher = databasePublisher; _dbManagerFactory = dbManagerFactory; _userNameNormalizer = userNameNormalizer; _directoryAdapter = directoryAdapter; }
public DeployDbProjectDeploymentTask( IProjectInfoRepository projectInfoRepository, IEnvironmentInfoRepository environmentInfoRepository, IArtifactsRepository artifactsRepository, IDbScriptRunnerFactory dbScriptRunnerFactory, IDbVersionProvider dbVersionProvider, IFileAdapter fileAdapter, IZipFileAdapter zipFileAdapter, IScriptsToRunSelector createScriptsToRunSelector, IMsSqlDatabasePublisher databasePublisher, IDbManagerFactory dbManagerFactory, IUserNameNormalizer userNameNormalizer, IDirectoryAdapter directoryAdapter) : base(projectInfoRepository, environmentInfoRepository) { Guard.NotNull(artifactsRepository, "artifactsRepository"); Guard.NotNull(dbVersionProvider, "dbVersionProvider"); Guard.NotNull(dbScriptRunnerFactory, "dbScriptRunnerFactory"); Guard.NotNull(fileAdapter, "fileAdapter"); Guard.NotNull(zipFileAdapter, "zipFileAdapter"); Guard.NotNull(createScriptsToRunSelector, "createScriptsToRunWebSelector"); Guard.NotNull(databasePublisher, "databasePublisher"); Guard.NotNull(dbManagerFactory, "dbManagerFactory"); Guard.NotNull(userNameNormalizer, "userNameNormalizer"); Guard.NotNull(directoryAdapter, "directoryAdapter"); _artifactsRepository = artifactsRepository; _dbScriptRunnerFactory = dbScriptRunnerFactory; _dbVersionProvider = dbVersionProvider; _fileAdapter = fileAdapter; _zipFileAdapter = zipFileAdapter; _createScriptsToRunSelector = createScriptsToRunSelector; _databasePublisher = databasePublisher; _dbManagerFactory = dbManagerFactory; _userNameNormalizer = userNameNormalizer; _directoryAdapter = directoryAdapter; }
public DbFormManagerRemote(IServiceProvider serviceProvider) { _serviceProvider = serviceProvider; _dbManagerFactory = _serviceProvider.GetService <IDbManagerFactory>(); }
public DbContextFactory(IDbManagerFactory managerFactory, IDbInvokerFactory dbInvokerFactory) { _managerFactory = managerFactory ?? throw new ArgumentNullException(nameof(managerFactory)); _dbInvokerFactory = dbInvokerFactory ?? throw new ArgumentNullException(nameof(dbInvokerFactory)); }