Beispiel #1
0
        protected BaseDbUp(string connectionString, string scriptManifestPath, IScriptManifestFactory scriptManifestFactory, ISqlCommandReaderFactory sqlCommandReaderFactory)
        {
            ConnectionString        = connectionString;
            SqlCommandReaderFactory = sqlCommandReaderFactory;
            Manifest = scriptManifestFactory.CreateScriptManifestByXml(scriptManifestPath);

            var builder = GetSqlConnectionStringBuilder(ConnectionString);

            Source = builder.DataSource;
            Target = builder.InitialCatalog;
        }
Beispiel #2
0
 protected BaseDbUp(string connectionString, string scriptManifestPath, ISqlCommandReaderFactory sqlCommandReaderFactory) : this(connectionString, scriptManifestPath, new ScriptManifestFactory(), sqlCommandReaderFactory)
 {
 }