Add comments marking workarounds required for EFcore 5

This commit is contained in:
Dean Herbert 2021-03-15 13:29:26 +09:00
parent 2904f479c6
commit fce21f23d6
4 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ private void load(GameHost host, AudioManager audio)
beatmaps.Add(new BeatmapInfo
{
Ruleset = rulesets.GetRuleset(i % 4),
RulesetID = i % 4,
RulesetID = i % 4, // workaround for efcore 5 compatibility.
OnlineBeatmapID = beatmapId,
Length = length,
BPM = bpm,

View File

@ -186,7 +186,7 @@ private BeatmapSetInfo importBeatmapSet(int importID, IEnumerable<RulesetInfo> d
Metadata = metadata,
BaseDifficulty = new BeatmapDifficulty(),
Ruleset = ruleset,
RulesetID = ruleset.ID.GetValueOrDefault(),
RulesetID = ruleset.ID.GetValueOrDefault(), // workaround for efcore 5 compatibility.
StarDifficulty = difficultyIndex + 1,
Version = $"SR{difficultyIndex + 1}"
}).ToList()

View File

@ -915,7 +915,7 @@ private BeatmapSetInfo createTestBeatmapSet(RulesetInfo[] rulesets, int countPer
beatmaps.Add(new BeatmapInfo
{
Ruleset = ruleset,
RulesetID = ruleset.ID.GetValueOrDefault(),
RulesetID = ruleset.ID.GetValueOrDefault(), // workaround for efcore 5 compatibility.
OnlineBeatmapID = beatmapId,
Version = $"{beatmapId} (length {TimeSpan.FromMilliseconds(length):m\\:ss}, bpm {bpm:0.#})",
Length = length,

View File

@ -642,7 +642,7 @@ private List<TFileModel> createFileInfos(ArchiveReader reader, FileStore files)
{
Filename = file.Substring(prefix.Length).ToStandardisedPath(),
FileInfo = fileInfo,
FileInfoID = fileInfo.ID
FileInfoID = fileInfo.ID // workaround for efcore 5 compatibility.
});
}
}