Beispiel #1
0
 public MyTableSqlBuilder(SyncTable tableDescription, ParserName tableName, ParserName trackingTableName, SyncSetup setup) : base(tableDescription, tableName, trackingTableName, setup)
 {
     this.sqlObjectNames          = new MySqlObjectNames(tableDescription, this.TableName, this.TrackingTableName, setup);
     this.sqlBuilderProcedure     = new MySqlBuilderProcedure(tableDescription, TableName, TrackingTableName, setup);
     this.sqlBuilderTable         = new MySqlBuilderTable(tableDescription, TableName, TrackingTableName, setup);
     this.sqlBuilderTrackingTable = new MySqlBuilderTrackingTable(tableDescription, tableName, trackingTableName, Setup);
     this.sqlBuilderTrigger       = new MySqlBuilderTrigger(tableDescription, tableName, trackingTableName, Setup);
 }
 public MySqlBuilderTrigger(DmTable tableDescription, DbConnection connection, DbTransaction transaction = null)
 {
     this.connection       = connection as MySqlConnection;
     this.transaction      = transaction as MySqlTransaction;
     this.tableDescription = tableDescription;
     (this.tableName, this.trackingName) = MySqlBuilder.GetParsers(this.tableDescription);
     this.mySqlObjectNames = new MySqlObjectNames(this.tableDescription);
 }
 public MySqlBuilderTrigger(SyncTable tableDescription, ParserName tableName, ParserName trackingName, SyncSetup setup)
 {
     this.tableDescription = tableDescription;
     this.setup = setup;
     this.tableName = tableName;
     this.trackingName = trackingName;
     this.mySqlObjectNames = new MySqlObjectNames(this.tableDescription, tableName, trackingName, this.setup);
 }
 public MySqlBuilderProcedure(SyncTable tableDescription, ParserName tableName, ParserName trackingName, SyncSetup setup)
 {
     this.tableDescription = tableDescription;
     this.setup            = setup;
     this.tableName        = tableName;
     this.trackingName     = trackingName;
     this.mySqlObjectNames = new MySqlObjectNames(this.tableDescription, tableName, trackingName, this.setup);
     this.mySqlDbMetadata  = new MySqlDbMetadata();
 }
Beispiel #5
0
        public MySqlBuilderProcedure(DmTable tableDescription, DbConnection connection, DbTransaction transaction = null)
        {
            this.connection  = connection as MySqlConnection;
            this.transaction = transaction as MySqlTransaction;

            this.tableDescription = tableDescription;
            (this.tableName, this.trackingName) = MySqlBuilder.GetParsers(tableDescription);
            this.sqlObjectNames  = new MySqlObjectNames(this.tableDescription);
            this.mySqlDbMetadata = new MySqlDbMetadata();
        }
Beispiel #6
0
        public MySqlSyncAdapter(DmTable tableDescription, DbConnection connection, DbTransaction transaction) : base(tableDescription)
        {
            var sqlc = connection as MySqlConnection;

            this.connection = sqlc ?? throw new InvalidCastException("Connection should be a MySqlConnection");

            this.transaction = transaction as MySqlTransaction;

            this.mySqlObjectNames = new MySqlObjectNames(TableDescription);
        }
 public MySqlBuilderTrigger(SyncTable tableDescription, ParserName tableName, ParserName trackingName, SyncSetup setup, DbConnection connection, DbTransaction transaction = null)
 {
     this.connection       = connection as MySqlConnection;
     this.transaction      = transaction as MySqlTransaction;
     this.tableDescription = tableDescription;
     this.setup            = setup;
     this.tableName        = tableName;
     this.trackingName     = trackingName;
     this.mySqlObjectNames = new MySqlObjectNames(this.tableDescription, tableName, trackingName, this.setup);
 }
        public MySqlSyncAdapter(SyncTable tableDescription, ParserName tableName, ParserName trackingName, SyncSetup setup, DbConnection connection, DbTransaction transaction) : base(tableDescription, setup)
        {
            var sqlc = connection as MySqlConnection;

            this.connection = sqlc ?? throw new InvalidCastException("Connection should be a MySqlConnection");

            this.transaction     = transaction as MySqlTransaction;
            this.mySqlDbMetadata = new MySqlDbMetadata();

            this.mySqlObjectNames = new MySqlObjectNames(TableDescription, tableName, trackingName, Setup);
        }
 public MySqlSyncAdapter(SyncTable tableDescription, ParserName tableName, ParserName trackingName, SyncSetup setup) : base(tableDescription, setup)
 {
     this.mySqlDbMetadata  = new MySqlDbMetadata();
     this.mySqlObjectNames = new MySqlObjectNames(TableDescription, tableName, trackingName, Setup);
 }
 public MyTableSqlBuilder(SyncTable tableDescription, SyncSetup setup) : base(tableDescription, setup)
 {
     sqlObjectNames = new MySqlObjectNames(tableDescription, this.TableName, this.TrackingTableName, setup);
 }
 public MySqlBuilder(DmTable tableDescription) : base(tableDescription)
 {
     sqlObjectNames = new MySqlObjectNames(tableDescription);
 }
Beispiel #12
0
 public MySqlBuilder(DmTable tableDescription, DbBuilderOption option = DbBuilderOption.CreateOrUseExistingSchema)
     : base(tableDescription, option)
 {
     sqlObjectNames = new MySqlObjectNames(tableDescription);
 }