1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:02:55 +08:00

Add detach mapping for BeatmapUserSettings

This commit is contained in:
Dean Herbert 2022-03-01 19:51:15 +09:00
parent 9792f0653a
commit 7d11cfb301

View File

@ -38,6 +38,7 @@ namespace osu.Game.Database
c.CreateMap<BeatmapInfo, BeatmapInfo>() c.CreateMap<BeatmapInfo, BeatmapInfo>()
.ForMember(s => s.Ruleset, cc => cc.Ignore()) .ForMember(s => s.Ruleset, cc => cc.Ignore())
.ForMember(s => s.Metadata, cc => cc.Ignore()) .ForMember(s => s.Metadata, cc => cc.Ignore())
.ForMember(s => s.UserSettings, cc => cc.Ignore())
.ForMember(s => s.Difficulty, cc => cc.Ignore()) .ForMember(s => s.Difficulty, cc => cc.Ignore())
.ForMember(s => s.BeatmapSet, cc => cc.Ignore()) .ForMember(s => s.BeatmapSet, cc => cc.Ignore())
.AfterMap((s, d) => .AfterMap((s, d) =>
@ -154,6 +155,7 @@ namespace osu.Game.Database
c.CreateMap<RealmKeyBinding, RealmKeyBinding>(); c.CreateMap<RealmKeyBinding, RealmKeyBinding>();
c.CreateMap<BeatmapMetadata, BeatmapMetadata>(); c.CreateMap<BeatmapMetadata, BeatmapMetadata>();
c.CreateMap<BeatmapUserSettings, BeatmapUserSettings>();
c.CreateMap<BeatmapDifficulty, BeatmapDifficulty>(); c.CreateMap<BeatmapDifficulty, BeatmapDifficulty>();
c.CreateMap<RulesetInfo, RulesetInfo>(); c.CreateMap<RulesetInfo, RulesetInfo>();
c.CreateMap<ScoreInfo, ScoreInfo>(); c.CreateMap<ScoreInfo, ScoreInfo>();