mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 23:12:56 +08:00
Add comments marking workarounds required for EFcore 5
This commit is contained in:
parent
2904f479c6
commit
fce21f23d6
@ -56,7 +56,7 @@ namespace osu.Game.Tests.Visual.Multiplayer
|
|||||||
beatmaps.Add(new BeatmapInfo
|
beatmaps.Add(new BeatmapInfo
|
||||||
{
|
{
|
||||||
Ruleset = rulesets.GetRuleset(i % 4),
|
Ruleset = rulesets.GetRuleset(i % 4),
|
||||||
RulesetID = i % 4,
|
RulesetID = i % 4, // workaround for efcore 5 compatibility.
|
||||||
OnlineBeatmapID = beatmapId,
|
OnlineBeatmapID = beatmapId,
|
||||||
Length = length,
|
Length = length,
|
||||||
BPM = bpm,
|
BPM = bpm,
|
||||||
|
@ -186,7 +186,7 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
Metadata = metadata,
|
Metadata = metadata,
|
||||||
BaseDifficulty = new BeatmapDifficulty(),
|
BaseDifficulty = new BeatmapDifficulty(),
|
||||||
Ruleset = ruleset,
|
Ruleset = ruleset,
|
||||||
RulesetID = ruleset.ID.GetValueOrDefault(),
|
RulesetID = ruleset.ID.GetValueOrDefault(), // workaround for efcore 5 compatibility.
|
||||||
StarDifficulty = difficultyIndex + 1,
|
StarDifficulty = difficultyIndex + 1,
|
||||||
Version = $"SR{difficultyIndex + 1}"
|
Version = $"SR{difficultyIndex + 1}"
|
||||||
}).ToList()
|
}).ToList()
|
||||||
|
@ -915,7 +915,7 @@ namespace osu.Game.Tests.Visual.SongSelect
|
|||||||
beatmaps.Add(new BeatmapInfo
|
beatmaps.Add(new BeatmapInfo
|
||||||
{
|
{
|
||||||
Ruleset = ruleset,
|
Ruleset = ruleset,
|
||||||
RulesetID = ruleset.ID.GetValueOrDefault(),
|
RulesetID = ruleset.ID.GetValueOrDefault(), // workaround for efcore 5 compatibility.
|
||||||
OnlineBeatmapID = beatmapId,
|
OnlineBeatmapID = beatmapId,
|
||||||
Version = $"{beatmapId} (length {TimeSpan.FromMilliseconds(length):m\\:ss}, bpm {bpm:0.#})",
|
Version = $"{beatmapId} (length {TimeSpan.FromMilliseconds(length):m\\:ss}, bpm {bpm:0.#})",
|
||||||
Length = length,
|
Length = length,
|
||||||
|
@ -642,7 +642,7 @@ namespace osu.Game.Database
|
|||||||
{
|
{
|
||||||
Filename = file.Substring(prefix.Length).ToStandardisedPath(),
|
Filename = file.Substring(prefix.Length).ToStandardisedPath(),
|
||||||
FileInfo = fileInfo,
|
FileInfo = fileInfo,
|
||||||
FileInfoID = fileInfo.ID
|
FileInfoID = fileInfo.ID // workaround for efcore 5 compatibility.
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user