Пример #1
0
        public ChainingRepo <IChainable> FilterByDate(DateTime st, DateTime fn)
        {
            ChainingRepo <IChainable> _result = new ChainingRepo <IChainable>(this._context);

            if (this._result == null)
            {
                this._result = from s in this._dbSet where s.DATE >= st && s.DATE <= fn select s;
            }
            _result._result = from s in this._result where s.DATE >= st && s.DATE <= fn select s;
            return(_result);
        }
Пример #2
0
        public new ChainingRepo <IChainable> GetAll()
        {
            ChainingRepo <IChainable> _result = new ChainingRepo <IChainable>(this._context);

            if (this._result == null)
            {
                this._result = from s in this._dbSet select s;
            }
            _result._result = from s in this._result select s;
            return(_result);
        }
Пример #3
0
        public ChainingRepo <IChainable> FilterByMerchants <K>() where K : class, IMerchant
        {
            ChainingRepo <IChainable> _result = new ChainingRepo <IChainable>(this._context);
            DbSet <K> filter_mercahnt         = this._context.Set <K>();

            if (this._result == null)
            {
                this._result = from s in this._dbSet where s.MERCHANT == 929 select s;
            }
            _result._result = from s in this._result join t in filter_mercahnt on s.MERCHANT equals t.MERCHANT select s;
            return(_result);
        }