Files
upo-senior-assistant/SeniorAssistant/Models/Users/MenuPatient.cs
Giacomo Bertolazzi 1c0176c72b Boh
- fix notification
- new menu system
- possibility to remove patients
2019-01-30 18:01:50 +01:00

19 lines
532 B
C#

using LinqToDB.Mapping;
using Newtonsoft.Json;
namespace SeniorAssistant.Models.Users
{
public class MenuPatient : IHasUsername
{
[Column(IsPrimaryKey = true, CanBeNull = false)]
public string Username { get; set; }
[Column(IsPrimaryKey = true, CanBeNull = false)]
public string PatientUsername { get; set; }
[JsonIgnore]
[Association(ThisKey = nameof(PatientUsername), OtherKey = nameof(User.Username), CanBeNull = false)]
public User Usr { get; set; }
}
}