mirror of
https://github.com/claunia/marechai.git
synced 2025-12-16 19:14:25 +00:00
Add alias and display name to people.
This commit is contained in:
@@ -28,10 +28,13 @@ namespace Cicm.Database.Models
|
||||
public string Facebook { get; set; }
|
||||
public Guid Photo { get; set; }
|
||||
public int? DocumentPersonId { get; set; }
|
||||
public string Alias { get; set; }
|
||||
[DisplayName("Name to be displayed")]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
[DisplayName("Name")]
|
||||
public string FullName => $"{Name} {Surname}";
|
||||
public string FullName => DisplayName ?? Alias ?? $"{Name} {Surname}";
|
||||
|
||||
public short? CountryOfBirthId { get; set; }
|
||||
public virtual ICollection<PeopleByCompany> Companies { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user