public void SetUp()
        {
            templateDir = AppDomain.CurrentDomain.BaseDirectory + @"\..\..\..\Sneal.SqlMigration\Templates";

            mocks           = new MockRepository();
            templateManager = mocks.DynamicMock <ISqlTemplateManager>();

            SetupResult.For(templateManager.TemplateDirectory).Return(templateDir);
            mocks.Replay(templateManager);
            scriptBuilder = new SqlServerScriptBuilder(templateManager);
            mocks.BackToRecord(templateManager);

            db    = new DatabaseStub("DB");
            table = new TableStub(db, "Customer");
        }
 public SqlServerOrmDataComponentFactory(SqlServerTransientRetryPolicy retryPolicy, string connectionString) : base(retryPolicy, connectionString)
 {
     SchemaParameterNames = new SqlServerSchemaParameterNames();
     ScriptBuilder        = new SqlServerScriptBuilder();
     SqlStatementBuilder  = new SqlServerSqlStatementBuilder(this);
 }
 public SqlServerOrmDataComponentFactory(string connectionString) : base(connectionString)
 {
     SchemaParameterNames = new SqlServerSchemaParameterNames();
     ScriptBuilder        = new SqlServerScriptBuilder();
     SqlStatementBuilder  = new SqlServerSqlStatementBuilder(this);
 }
Beispiel #4
0
 public void Init()
 {
     sqlScriptBuilder = new SqlServerScriptBuilder("Products", "ProductID");
 }
 public SqlServerOrmDataComponentFactory(RetryOptions retryOptions) : base(retryOptions)
 {
     SchemaParameterNames = new SqlServerSchemaParameterNames();
     ScriptBuilder        = new SqlServerScriptBuilder();
     SqlStatementBuilder  = new SqlServerSqlStatementBuilder(this);
 }