check add person photo finish

This commit is contained in:
2025-10-27 16:23:06 +11:00
parent c62ae2cd42
commit cbb61b796f
28 changed files with 1084 additions and 86 deletions
@@ -80,7 +80,11 @@ namespace FamilyTreeAPI.Models
entity.Property(e => e.Id).HasColumnName("id");
entity.Property(e => e.PersonId).HasColumnName("personid");
entity.Property(e => e.Photo).HasColumnName("photo");
entity.Property(e => e.Photo)
.HasColumnName("photo");
entity.Property(e => e.PhotoType)
.HasMaxLength(20)
.HasColumnName("phototype");
entity.Property(e => e.ImagePhoto).HasColumnName("imagephot"); //try to store binary in table. "bytea"
});
+1
View File
@@ -6,6 +6,7 @@
public int PersonId { get; set; }
public string Photo { get; set; }
public string? PhotoType { get; set; }
public byte[] ImagePhoto { get; set; }