- Migliorie

This commit is contained in:
DawitG96
2019-02-01 19:57:23 +01:00
parent 44e9542a15
commit 949184875a
11 changed files with 170 additions and 153 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; }
}
}