Add people by document.

This commit is contained in:
2019-06-17 00:34:54 +01:00
parent e2c9416bbe
commit 07da0eec75
8 changed files with 7713 additions and 2 deletions

View File

@@ -1,3 +1,4 @@
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
@@ -11,7 +12,8 @@ namespace Cicm.Database.Models
public string Surname { get; set; }
public int? PersonId { get; set; }
public virtual Person Person { get; set; }
public virtual Person Person { get; set; }
public virtual ICollection<PeopleByDocument> Documents { get; set; }
[NotMapped]
public string FullName => $"{Name} {Surname}";