public PostgreSqlBuilderTable(DmTable tableDescription, DbConnection connection,
                               DbTransaction transaction = null)
 {
     _connection       = connection as NpgsqlConnection;
     _transaction      = transaction as NpgsqlTransaction;
     _tableDescription = tableDescription;
     (_tableName, _)   = PostgreSqlBuilder.GetParsers(_tableDescription);
     _mySqlDbMetadata  = new PostgreSqlDbMetadata();
 }
예제 #2
0
        public PostgreSqlBuilderProcedure(DmTable tableDescription, DbConnection connection,
                                          DbTransaction transaction = null)
        {
            _connection  = connection as NpgsqlConnection;
            _transaction = transaction as NpgsqlTransaction;

            _tableDescription           = tableDescription;
            (_tableName, _trackingName) = PostgreSqlBuilder.GetParsers(tableDescription);
            _sqlObjectNames             = new PostgreSqlObjectNames(_tableDescription);
            _mySqlDbMetadata            = new PostgreSqlDbMetadata();

            _schemaName = new NpgsqlConnectionStringBuilder(connection.ConnectionString).SearchPath ?? "public";
        }