From 98fea6c0bef4dc19c020a5b4d444b58c390ec0e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Sat, 2 Sep 2023 16:25:50 +0200 Subject: [PATCH] marked calculated properties as not mapped --- PiwigoDirectorySync/Persistence/ImageEntity.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PiwigoDirectorySync/Persistence/ImageEntity.cs b/PiwigoDirectorySync/Persistence/ImageEntity.cs index 196b1e6..399745a 100644 --- a/PiwigoDirectorySync/Persistence/ImageEntity.cs +++ b/PiwigoDirectorySync/Persistence/ImageEntity.cs @@ -11,12 +11,14 @@ public class ImageEntity [Key] [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int Id { get; set; } + public int? ServerImageId { get; set; } public required string FilePath { get; set; } - public string Name => Path.GetFileNameWithoutExtension(FilePath); - public string FileName => Path.GetFileName(FilePath); + [NotMapped] public string Name => Path.GetFileNameWithoutExtension(FilePath); + + [NotMapped] public string FileName => Path.GetFileName(FilePath); public DateTime LastChange { get; set; } public string? Md5Sum { get; set; }