я сделал так много
This commit is contained in:
parent
7a8104aed0
commit
7862b08cdb
@ -2,6 +2,7 @@
|
||||
using LawFirmContracts.BindingModels;
|
||||
using LawFirmContracts.ViewModels;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LawFirmDatabaseImplement.Models
|
||||
{
|
||||
@ -15,6 +16,13 @@ namespace LawFirmDatabaseImplement.Models
|
||||
[Required]
|
||||
public string Password { get; private set; } = string.Empty;
|
||||
|
||||
[ForeignKey("ExecutorId")]
|
||||
public virtual List<Case> Cases { get; set; } = new();
|
||||
[ForeignKey("ExecutorId")]
|
||||
public virtual List<Client> Clients { get; set; } = new();
|
||||
[ForeignKey("ExecutorId")]
|
||||
public virtual List<Visit> Visits { get; set; } = new();
|
||||
|
||||
public static Executor? Create(ExecutorBindingModel? model)
|
||||
{
|
||||
if (model == null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user