Example #1
0
        public TableSchemaFactoryTests()
        {
            var sqlNameEscaper = new TestSqlNameEscaper();

            this.sut = new PeregrineConfig(TestDialect.Instance, sqlNameEscaper, new AtttributeTableNameConvention(sqlNameEscaper),
                                           new AttributeColumnNameConvention(sqlNameEscaper), true, PeregrineConfig.DefaultSqlTypeMapping);
        }
Example #2
0
 public DefaultDatabase(IDbConnection connection, PeregrineConfig config, bool leaveOpen = false)
     : base(connection, null, config, leaveOpen)
 {
 }
Example #3
0
 public CommandFactory(PeregrineConfig config)
 {
     this.Config = config;
 }
Example #4
0
 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)));
 }
Example #5
0
 public DefaultUnitOfWork(IDbConnection connection, IDbTransaction transaction, PeregrineConfig config, bool leaveOpen = false)
     : base(connection, transaction, config, leaveOpen)
 {
     Ensure.NotNull(transaction, nameof(transaction));
 }