From a83434caadbb3f0b88a140c6ca79cb080c1edc1c Mon Sep 17 00:00:00 2001 From: Daniel Gyulai Date: Sun, 22 Nov 2020 20:33:13 +0100 Subject: [PATCH] Excluded Images from Update entity --- CoviDok/Data/Model/Update.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CoviDok/Data/Model/Update.cs b/CoviDok/Data/Model/Update.cs index 65a6368..19a3e45 100644 --- a/CoviDok/Data/Model/Update.cs +++ b/CoviDok/Data/Model/Update.cs @@ -1,6 +1,7 @@ using CoviDok.Api; using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Threading.Tasks; @@ -14,6 +15,8 @@ namespace CoviDok.Data.Model public Role SenderRole { get; set; } public string Content { get; set; } public DateTime CreatedDate { get; set; } + + [NotMapped] public ICollection Images { get; set; } public Update() {