Ejemplo n.º 1
0
        public TableSchemaFactoryTests()
        {
            var sqlNameEscaper = new TestSqlNameEscaper();

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