Пример #1
0
 public RepositoryQuery(IReader <T> reader, IMapper <T, U> mapper,
                        ISqlSyntaxSign sqlsyntaxsign,
                        ISqlCommandBuilder sqlcommandbuilder,
                        ISqlCreator sqlcreator)
     : this(sqlsyntaxsign,
            mapper,
            sqlcommandbuilder,
            new SqlCommandExecutor <T>(sqlcreator, reader), new SqlCommandExecutorBulk(sqlcreator))
 {
 }
Пример #2
0
 public SqlCommandExecutor(ISqlCreator creator, IReader <T> reader)
     : base(reader)
 {
     _creator = creator;
 }
Пример #3
0
 public CommonRepository(ISqlCreator sqlCreator, IDataRepository dataRepository)
 {
     this.SqlCreator     = sqlCreator;
     this.DataRepository = dataRepository;
 }
Пример #4
0
 protected Repository(string dbName)
     : this()
 {
     _dbname = dbName;
     creator = SqlCreatorFactory.GetSqlCreator <TL>();
 }
Пример #5
0
 public Repository()
 {
     creator = SqlCreatorFactory.GetSqlCreator <TL>();
 }
Пример #6
0
 public DynamicRDBService(ISqlCreator sqlCreator, IDataRepository dataRepository)
 {
     this.SqlCreator     = sqlCreator;
     this.DataRepository = dataRepository;
 }
Пример #7
0
 public SqlCommandExecutorBulk(ISqlCreator creator)
     : base()
 {
     _creator = creator;
 }