Esempio n. 1
0
        public virtual IEnumerable <TEntity> GetAll()
        {
            string query = QB <TEntity> .Select();

            if (Transaction != null)
            {
                return(Connection.Query <TEntity>(query, transaction: Transaction));
            }
            return(Connection.Query <TEntity>(query));
        }
Esempio n. 2
0
        public virtual IEnumerable <T> AllIncluding(params Expression <Func <T, object> >[] includeProperties)
        {
            var query = QB <T> .Select();

            return(_dbContext.SqlConnection.Query <T>(query, includeProperties).ToList());
        }
Esempio n. 3
0
        public virtual IEnumerable <T> GetAll()
        {
            var query = QB <T> .Select();

            return(_dbContext.SqlConnection.Query <T>(query).ToList());
        }