check add person photo finish
This commit is contained in:
@@ -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"
|
||||
|
||||
});
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
public int PersonId { get; set; }
|
||||
public string Photo { get; set; }
|
||||
public string? PhotoType { get; set; }
|
||||
|
||||
public byte[] ImagePhoto { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user