Use JSON columns instead of junction tables
This commit is contained in:
parent
8fd50d030b
commit
b36f6c8f0b
35 changed files with 471 additions and 1103 deletions
|
|
@ -220,8 +220,7 @@ public static class IncludesExtensions
|
|||
{
|
||||
query = query
|
||||
.Include(u => u.UserPreferences)
|
||||
.ThenInclude(p => p.Theme)
|
||||
.Include(u => u.UserPreferences.ReadingProfiles);
|
||||
.ThenInclude(p => p.Theme);
|
||||
}
|
||||
|
||||
if (includeFlags.HasFlag(AppUserIncludes.WantToRead))
|
||||
|
|
@ -343,20 +342,4 @@ 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