Beispiel #1
0
 public SchemaBuilder(IDbConnection connection, IDbTransaction transaction, string tablePrefix)
 {
     _builder     = CommandInterpreterFactory.For(connection);
     _dialect     = SqlDialectFactory.For(connection);
     _tablePrefix = tablePrefix;
     Connection   = connection;
     Transaction  = transaction;
 }
Beispiel #2
0
 public SchemaBuilder(ISession session)
 {
     Transaction  = session.Demand();
     Connection   = Transaction.Connection;
     _builder     = CommandInterpreterFactory.For(Connection);
     _dialect     = SqlDialectFactory.For(Connection);
     _tablePrefix = session.Store.Configuration.TablePrefix;
 }
Beispiel #3
0
 public SchemaBuilder(ISession session)
 {
     Transaction  = session.DemandAsync().GetAwaiter().GetResult();
     Connection   = Transaction.Connection;
     _builder     = CommandInterpreterFactory.For(Connection);
     _dialect     = session.Store.Dialect;
     _tablePrefix = session.Store.Configuration.TablePrefix;
 }
Beispiel #4
0
 public SchemaBuilder(IConfiguration configuration, DbTransaction transaction, bool throwOnError = true)
 {
     Transaction  = transaction;
     Connection   = Transaction.Connection;
     _builder     = CommandInterpreterFactory.For(Connection);
     Dialect      = SqlDialectFactory.For(configuration.ConnectionFactory.DbConnectionType);
     TablePrefix  = configuration.TablePrefix;
     ThrowOnError = throwOnError;
 }