marked calculated properties as not mapped

This commit is contained in:
Philipp Häfelfinger 2023-09-02 16:25:50 +02:00
parent c94956abdd
commit 98fea6c0be
1 changed files with 4 additions and 2 deletions

View File

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