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; }