- fix notification
- new menu system
- possibility to remove patients
This commit is contained in:
2019-01-30 18:01:50 +01:00
parent e4819da4c8
commit 1c0176c72b
8 changed files with 115 additions and 67 deletions

View File

@@ -0,0 +1,18 @@
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; }
}
}