From b760b6f905b92578d645e0f627343f931d1aa4a6 Mon Sep 17 00:00:00 2001 From: Alexis DRAI Date: Sat, 15 Oct 2022 20:13:53 +0200 Subject: [PATCH] :bug: --- Sources/Data/EF/Dice/ColorDieExtensions.cs | 2 +- Sources/Data/EF/Dice/NumberDieExtensions.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/Data/EF/Dice/ColorDieExtensions.cs b/Sources/Data/EF/Dice/ColorDieExtensions.cs index ba44224..ed1d0ea 100644 --- a/Sources/Data/EF/Dice/ColorDieExtensions.cs +++ b/Sources/Data/EF/Dice/ColorDieExtensions.cs @@ -35,7 +35,7 @@ namespace Data.EF.Dice return entity; } - public static IEnumerable ToEntities(this IEnumerable models) + public static IEnumerable ToEntities(this IEnumerable models) { return models.Select(model => model.ToEntity()); } diff --git a/Sources/Data/EF/Dice/NumberDieExtensions.cs b/Sources/Data/EF/Dice/NumberDieExtensions.cs index ce49b2c..438fa51 100644 --- a/Sources/Data/EF/Dice/NumberDieExtensions.cs +++ b/Sources/Data/EF/Dice/NumberDieExtensions.cs @@ -33,14 +33,14 @@ namespace Data.EF.Dice return entities.Select(entity => ToModel(entity)); } - public static ColorDieEntity ToEntity(this ColorDie model) + public static NumberDieEntity ToEntity(this NumberDie model) { - var entity = new ColorDieEntity(); - foreach (var face in model.Faces) { entity.Faces.Add(ColorFaceExtensions.ToEntity((ColorFace)face)); } + var entity = new NumberDieEntity(); + foreach (var face in model.Faces) { entity.Faces.Add(((NumberFace)face).ToEntity()); } return entity; } - public static IEnumerable ToEntities(this IEnumerable models) + public static IEnumerable ToEntities(this IEnumerable models) { return models.Select(model => model.ToEntity()); }