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)); }
public virtual IEnumerable <T> AllIncluding(params Expression <Func <T, object> >[] includeProperties) { var query = QB <T> .Select(); return(_dbContext.SqlConnection.Query <T>(query, includeProperties).ToList()); }
public virtual IEnumerable <T> GetAll() { var query = QB <T> .Select(); return(_dbContext.SqlConnection.Query <T>(query).ToList()); }