public AutoCloseMultiSqlReader(DbCommand command, SqlORM sqlOrm) : base(command, sqlOrm) { DbConnection?con = command.Connection; Debug.Assert(con != null); _con = con; }
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; }
internal SqlReader(SqlORM sqlOrm) { Debug.Assert(sqlOrm != null); _sqlOrm = sqlOrm; }
internal SqlQueryTransaction(SqlORM sqlOrm, DbTransaction transaction, string commandText) : base(sqlOrm, commandText) { _transaction = transaction; }
internal MultiSqlReader(DbCommand command, SqlORM sqlOrm) : base(sqlOrm) { Debug.Assert(command != null); _dbCommand = command; }