diff --git a/CaseAccounting/CaseAccountingDataBaseImplement/Models/Case.cs b/CaseAccounting/CaseAccountingDataBaseImplement/Models/Case.cs index 91d5aad..ef7ece0 100644 --- a/CaseAccounting/CaseAccountingDataBaseImplement/Models/Case.cs +++ b/CaseAccounting/CaseAccountingDataBaseImplement/Models/Case.cs @@ -34,9 +34,13 @@ namespace CaseAccountingDataBaseImplement.Models [Required] public int SpecializationId { get; set; } + public virtual Specialization Specialization { get; set; } = new(); + [Required] public int UserId { get; set; } + public virtual User User { get; set; } = new(); + [ForeignKey("CaseId")] public virtual List Hearings { get; set; } = new(); diff --git a/CaseAccounting/CaseAccountingDataBaseImplement/Models/Contract.cs b/CaseAccounting/CaseAccountingDataBaseImplement/Models/Contract.cs index 7438ced..497995b 100644 --- a/CaseAccounting/CaseAccountingDataBaseImplement/Models/Contract.cs +++ b/CaseAccounting/CaseAccountingDataBaseImplement/Models/Contract.cs @@ -28,6 +28,8 @@ namespace CaseAccountingDataBaseImplement.Models [Required] public int UserId { get; set; } + public virtual User User { get; set; } = new(); + [ForeignKey("ContractId")] public virtual List LawyerContracts { get; set; } = new(); diff --git a/CaseAccounting/CaseAccountingDataBaseImplement/Models/Deal.cs b/CaseAccounting/CaseAccountingDataBaseImplement/Models/Deal.cs index ea1d6d5..ac1c118 100644 --- a/CaseAccounting/CaseAccountingDataBaseImplement/Models/Deal.cs +++ b/CaseAccounting/CaseAccountingDataBaseImplement/Models/Deal.cs @@ -27,6 +27,8 @@ namespace CaseAccountingDataBaseImplement.Models [Required] public int UserId { get; set; } + public virtual User User { get; set; } = new(); + [ForeignKey("DealId")] public virtual List CaseDeals { get; set; } = new();