marked calculated properties as not mapped
This commit is contained in:
parent
c94956abdd
commit
98fea6c0be
@ -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; }
|
||||
|
Loading…
Reference in New Issue
Block a user