Boh
- fix notification - new menu system - possibility to remove patients
This commit is contained in:
18
SeniorAssistant/Models/Users/MenuPatient.cs
Normal file
18
SeniorAssistant/Models/Users/MenuPatient.cs
Normal 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; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user