Some unit tests, names and small fixes
This commit is contained in:
parent
23c4a451b4
commit
06914d1135
10 changed files with 332 additions and 13 deletions
|
|
@ -342,4 +342,20 @@ public static class IncludesExtensions
|
|||
|
||||
return queryable;
|
||||
}
|
||||
|
||||
public static IQueryable<AppUserReadingProfile> Includes(this IQueryable<AppUserReadingProfile> queryable, ReadingProfileIncludes includeFlags)
|
||||
{
|
||||
|
||||
if (includeFlags.HasFlag(ReadingProfileIncludes.Series))
|
||||
{
|
||||
queryable = queryable.Include(r => r.Series);
|
||||
}
|
||||
|
||||
if (includeFlags.HasFlag(ReadingProfileIncludes.Library))
|
||||
{
|
||||
queryable = queryable.Include(r => r.Libraries);
|
||||
}
|
||||
|
||||
return queryable;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue