Silence EF warning due to ordinal being unsupported

This commit is contained in:
smoogipoo 2020-10-16 23:31:01 +09:00
parent e87f515a4f
commit 81cc5e1c42

View File

@ -100,7 +100,8 @@ namespace osu.Game.Rulesets
{
// 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).
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);
}