mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Fix by after Id with random sorting in dapper
This commit is contained in:
parent
ba37786038
commit
d7dd2bd138
@ -154,7 +154,7 @@ public static class DapperHelper
|
||||
Filter<T>.Lt(var property, var value) => Format(property, $"< {P(value)}"),
|
||||
Filter<T>.Le(var property, var value) => Format(property, $"> {P(value)}"),
|
||||
Filter<T>.Has(var property, var value) => $"{P(value)} = any({_Property(property, config):raw})",
|
||||
Filter<T>.EqRandom(var seed, var id) => $"md5({seed} || {config.Select(x => $"{x.Key}.id"):raw}) = md5({seed} || {id.ToString()})",
|
||||
Filter<T>.EqRandom(var seed, var id) => $"md5({seed} || coalesce({string.Join(", ", config.Select(x => $"{x.Key}.id")):raw})) = md5({seed} || {id.ToString()})",
|
||||
Filter<T>.Lambda(var lambda) => throw new NotSupportedException(),
|
||||
_ => throw new NotImplementedException(),
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user