/2014-12-30-improve-perceived-performance-in-mvc-5-applications-part-ii_003.cs
Created Jan 12, 2018
public virtual IQueryable<TEntity> FindAll(Expression<Func<TEntity, bool>> where = null, params string[] includes) | |
{ | |
IQueryable<TEntity> query = where == null ? this.Context.Set<TEntity>() : this.Context.Set<TEntity>().Where(where); | |
foreach (var include in includes) | |
query = query.Include(include); return query; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment