Created
January 12, 2018 22:45
-
-
Save hbulens/2765c346ed98a61375f950993e45e4d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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