Пример #1
0
		public DatabaseHelper()
		{
			_connectionString = ConfigurationManager.ConnectionStrings["ManagerConnectionString"].ConnectionString;
			_databaseName = ConfigurationManager.AppSettings["TestDb"];
			_createScriptPath = ConfigurationManager.AppSettings["CreateScriptPath"];
			_schemaScriptsPath = ConfigurationManager.AppSettings["ReleaseScriptPath"];
			_programabilityPath = ConfigurationManager.AppSettings["ProgrammibilityPath"];
			_masterDatabaseName = "master";
			var executeMaster = new ExecuteSql(() => OpenConnection(true));

			_databaseSchemaCreator = new DatabaseSchemaCreator(new SchemaVersionInformation(), executeMaster);
			_databaseCreator = new DatabaseCreator(executeMaster);
		}
Пример #2
0
		public DatabaseCreator(ExecuteSql executeMaster)
		{
			_executeMaster = executeMaster;
		}
Пример #3
0
 public DatabaseCreator(ExecuteSql executeMaster)
 {
     _executeMaster = executeMaster;
 }
Пример #4
0
		public DatabaseSchemaCreator(SchemaVersionInformation schemaVersionInformation, ExecuteSql executeSql)
		{
			_schemaVersionInformation = schemaVersionInformation;
			_executeSql = executeSql;
		}
Пример #5
0
 public DatabaseSchemaCreator(SchemaVersionInformation schemaVersionInformation, ExecuteSql executeSql)
 {
     _schemaVersionInformation = schemaVersionInformation;
     _executeSql = executeSql;
 }
Пример #6
0
		public DatabaseTasks(ExecuteSql executeMaster)
		{
			_executeMaster = executeMaster;
		}