mirror of
https://github.com/ppy/osu
synced 2025-01-06 14:20:03 +00:00
Silence EF warning due to ordinal being unsupported
This commit is contained in:
parent
e87f515a4f
commit
81cc5e1c42
@ -100,7 +100,8 @@ namespace osu.Game.Rulesets
|
|||||||
{
|
{
|
||||||
// todo: StartsWith can be changed to Equals on 2020-11-08
|
// todo: StartsWith can be changed to Equals on 2020-11-08
|
||||||
// This is to give users enough time to have their database use new abbreviated info).
|
// This is to give users enough time to have their database use new abbreviated info).
|
||||||
if (context.RulesetInfo.FirstOrDefault(ri => ri.InstantiationInfo.StartsWith(r.RulesetInfo.InstantiationInfo, StringComparison.Ordinal)) == null)
|
// ReSharper disable once StringStartsWithIsCultureSpecific (silences EF warning of ordinal being unsupported)
|
||||||
|
if (context.RulesetInfo.FirstOrDefault(ri => ri.InstantiationInfo.StartsWith(r.RulesetInfo.InstantiationInfo)) == null)
|
||||||
context.RulesetInfo.Add(r.RulesetInfo);
|
context.RulesetInfo.Add(r.RulesetInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user