исправил models
This commit is contained in:
parent
82296e3d23
commit
be1b5b1a1c
@ -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<Hearing> Hearings { get; set; } = new();
|
||||
|
||||
|
@ -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> LawyerContracts { get; set; } = new();
|
||||
|
||||
|
@ -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<CaseDeal> CaseDeals { get; set; } = new();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user