public SchemaBuilder(IDbConnection connection, IDbTransaction transaction, string tablePrefix) { _builder = CommandInterpreterFactory.For(connection); _dialect = SqlDialectFactory.For(connection); _tablePrefix = tablePrefix; Connection = connection; Transaction = transaction; }
public SchemaBuilder(ISession session) { Transaction = session.Demand(); Connection = Transaction.Connection; _builder = CommandInterpreterFactory.For(Connection); _dialect = SqlDialectFactory.For(Connection); _tablePrefix = session.Store.Configuration.TablePrefix; }
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; }
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; }