From 896d01387c2c202e3eae49f84dc75710115f7e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Fi=C5=A1era?= Date: Fri, 14 May 2021 12:34:44 +0200 Subject: [PATCH] #340 - Fix creating income key in overview model. --- src/Money.Models.EntityFrameworkCore/IncomeEntity.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Money.Models.EntityFrameworkCore/IncomeEntity.cs b/src/Money.Models.EntityFrameworkCore/IncomeEntity.cs index 390ca041..d7e63c37 100644 --- a/src/Money.Models.EntityFrameworkCore/IncomeEntity.cs +++ b/src/Money.Models.EntityFrameworkCore/IncomeEntity.cs @@ -1,5 +1,6 @@ using Money.Events; using Money.Models.Queries; +using Neptuo; using Neptuo.Models.Keys; using System; using System.Collections.Generic; @@ -35,7 +36,7 @@ public IncomeEntity(IncomeCreated payload) } public IncomeOverviewModel ToOverviewModel(ListMonthIncome query) => new IncomeOverviewModel( - GuidKey.Create(Id, "Income"), + GuidKey.Create(Id, KeyFactory.Empty(typeof(Income)).Type), new Price(Amount, Currency), When, Description