コード例 #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));
        }
コード例 #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());
        }
コード例 #3
0
        public virtual IEnumerable <T> GetAll()
        {
            var query = QB <T> .Select();

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