Example #1
0
        public AutoCloseMultiSqlReader(DbCommand command, SqlORM sqlOrm) : base(command, sqlOrm)
        {
            DbConnection?con = command.Connection;

            Debug.Assert(con != null);
            _con = con;
        }
Example #2
0
        internal SqlTransaction(SqlORM sqlOrm)
        {
            Debug.Assert(sqlOrm != null);

            _sqlOrm     = sqlOrm;
            _connection = sqlOrm.Factory.CreateConnection() ?? throw new MicroOrmException("DbProviderFactory returns null instead of instance of connection");
            _connection.ConnectionString = sqlOrm.ConnectionString;
        }
Example #3
0
        internal SqlReader(SqlORM sqlOrm)
        {
            Debug.Assert(sqlOrm != null);

            _sqlOrm = sqlOrm;
        }
 internal SqlQueryTransaction(SqlORM sqlOrm, DbTransaction transaction, string commandText)
     : base(sqlOrm, commandText)
 {
     _transaction = transaction;
 }
Example #5
0
        internal MultiSqlReader(DbCommand command, SqlORM sqlOrm) : base(sqlOrm)
        {
            Debug.Assert(command != null);

            _dbCommand = command;
        }