示例#1
0
        public EntityReader
            (TableInfo tableInfo
            , string connectionStringName
            , DapperExecuter executer
            , QueryBuilder queryBuilder
            , JoinBuilder joinBuilder
            , IAccelr8Locator serviceLocator)
        {
            _connectionStringName = connectionStringName;
            _executer             = executer;
            _queryBuilder         = queryBuilder;
            _joinBuilder          = joinBuilder;

            if (_locator == null)
            {
                _locator = serviceLocator;
            }

            UniqueId    = tableInfo.UniqueId;
            IdColumn    = tableInfo.IdColumn;
            TableName   = tableInfo.TableName;
            TableAlias  = tableInfo.TableAlias;
            ColumnNames = tableInfo.ColumnNames.OrderBy(c => c.Value).ToList();
            Joins       = (JoinInfo[])tableInfo.Joins.Clone();
            TableInfo   = tableInfo;
        }
示例#2
0
        public TableInfo(IAccelr8Locator locator)
        {
            ColumnNames = new Dictionary<int, string>();
            Joins = new JoinInfo[0];

            if (_locator == null)
                _locator = locator;
        }
示例#3
0
        public TableInfo(IAccelr8Locator locator)
        {
            ColumnNames = new Dictionary <int, string>();
            Joins       = new JoinInfo[0];

            if (_locator == null)
            {
                _locator = locator;
            }
        }
示例#4
0
 public Repository(IAccelr8Locator serviceLocator, IUnitOfWorkStore unitStore)
 {
     _serviceLocator = serviceLocator;
     _unitStore      = unitStore;
 }