public ScriptCreatorRunner(IDataClient dataClient, Assembly targetAssembly)
        {
            _dialect = dataClient.Dialect;
            _scriptCreatorDatabase = new ScriptCreatorDatabase(_dialect, dataClient.Database);
            _scriptCreatorDataClient = new DataClient(_scriptCreatorDatabase, _dialect);
            _versionRepository = new ScriptCreatorVersionRepository(_scriptCreatorDataClient, false);
            _versionRepository.OnUpdateVersion += UpdateSchemaVersion;

            Runner.Log = new ScriptCreatorLogger(Runner.Log, this);
            _runner = new Runner(_scriptCreatorDataClient, targetAssembly, _versionRepository);
        }
Beispiel #2
0
 public DataClient(IDatabase database, Dialect dialect)
 {
     Database = database;
     Dialect = dialect;
     ThrowException = true;
 }
 public ScriptCreatorDatabase(Dialect dialect, IDatabase databaseForReading)
 {
     _databaseForReading = databaseForReading;
     Sqls = new List<string>();
     Dialect = dialect;
 }