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

View File

@ -11,12 +11,14 @@ public class ImageEntity
[Key] [Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int Id { get; set; } public int Id { get; set; }
public int? ServerImageId { get; set; } public int? ServerImageId { get; set; }
public required string FilePath { get; set; } public required string FilePath { get; set; }
public string Name => Path.GetFileNameWithoutExtension(FilePath); [NotMapped] public string Name => Path.GetFileNameWithoutExtension(FilePath);
public string FileName => Path.GetFileName(FilePath);
[NotMapped] public string FileName => Path.GetFileName(FilePath);
public DateTime LastChange { get; set; } public DateTime LastChange { get; set; }
public string? Md5Sum { get; set; } public string? Md5Sum { get; set; }