public TableSchemaFactoryTests() { var sqlNameEscaper = new TestSqlNameEscaper(); this.sut = new PeregrineConfig(TestDialect.Instance, sqlNameEscaper, new AtttributeTableNameConvention(sqlNameEscaper), new AttributeColumnNameConvention(sqlNameEscaper), true, PeregrineConfig.DefaultSqlTypeMapping); }
public DefaultDatabase(IDbConnection connection, PeregrineConfig config, bool leaveOpen = false) : base(connection, null, config, leaveOpen) { }
public CommandFactory(PeregrineConfig config) { this.Config = config; }
protected DefaultSqlConnection(IDbConnection connection, IDbTransaction transaction, PeregrineConfig config, bool leaveOpen) { this.connection = connection ?? throw new ArgumentNullException(nameof(connection)); this.Transaction = transaction; this.leaveOpen = leaveOpen; this.commandFactory = new CommandFactory(config ?? throw new ArgumentNullException(nameof(config))); }
public DefaultUnitOfWork(IDbConnection connection, IDbTransaction transaction, PeregrineConfig config, bool leaveOpen = false) : base(connection, transaction, config, leaveOpen) { Ensure.NotNull(transaction, nameof(transaction)); }