Merge remote-tracking branch 'upstream/master' into perf-rebased

This commit is contained in:
Shadowghost
2026-04-19 10:23:34 +02:00
45 changed files with 756 additions and 244 deletions

View File

@@ -235,6 +235,21 @@ public class PeopleRepository(IDbContextFactory<JellyfinDbContext> dbProvider, I
query = query.Where(e => e.Name.ToUpper().Contains(nameContainsUpper));
}
if (!string.IsNullOrWhiteSpace(filter.NameStartsWith))
{
query = query.Where(e => e.Name.StartsWith(filter.NameStartsWith.ToLowerInvariant()));
}
if (!string.IsNullOrWhiteSpace(filter.NameLessThan))
{
query = query.Where(e => e.Name.CompareTo(filter.NameLessThan.ToLowerInvariant()) < 0);
}
if (!string.IsNullOrWhiteSpace(filter.NameStartsWithOrGreater))
{
query = query.Where(e => e.Name.CompareTo(filter.NameStartsWithOrGreater.ToLowerInvariant()) >= 0);
}
return query;
}