Update automapper spec in line with v11

See https://docs.automapper.org/en/latest/11.0-Upgrade-Guide.html for
 more details.
This commit is contained in:
Dean Herbert
2022-01-18 15:21:08 +09:00
parent 1b62a685f3
commit 9a43ed742b
3 changed files with 39 additions and 24 deletions

View File

@ -3,7 +3,6 @@
using System;
using System.Linq;
using AutoMapper;
using JetBrains.Annotations;
using Newtonsoft.Json;
using osu.Framework.Testing;
@ -37,7 +36,6 @@ namespace osu.Game.Beatmaps
public BeatmapMetadata Metadata { get; set; }
[IgnoreMap]
[Backlink(nameof(ScoreInfo.BeatmapInfo))]
public IQueryable<ScoreInfo> Scores { get; } = null!;
@ -155,7 +153,6 @@ namespace osu.Game.Beatmaps
#region Compatibility properties
[Ignored]
[IgnoreMap]
public int RulesetID
{
get => Ruleset.OnlineID;
@ -169,7 +166,6 @@ namespace osu.Game.Beatmaps
}
[Ignored]
[IgnoreMap]
public BeatmapDifficulty BaseDifficulty
{
get => Difficulty;