Compare commits

..

No commits in common. "99b8127bf8fb7ad9b4c28c245ed1d26dc9c64980" and "45a6a528822e863c1cdc6ffcd484f4bb3afe6ee4" have entirely different histories.

4 changed files with 0 additions and 11 deletions

View File

@ -10,6 +10,5 @@ namespace LawFimDataModels.Models
string CaseType { get; } string CaseType { get; }
DateTime DateCreate { get; } DateTime DateCreate { get; }
DateTime? DateImplement { get; } DateTime? DateImplement { get; }
public int ExecutorId { get; }
} }
} }

View File

@ -5,6 +5,5 @@
string FIO { get; } string FIO { get; }
string Phone { get; } string Phone { get; }
string Email { get; } string Email { get; }
public int ExecutorId { get; }
} }
} }

View File

@ -5,6 +5,5 @@
Dictionary<int, IClientModel> VisitClients { get; } Dictionary<int, IClientModel> VisitClients { get; }
DateTime VisitDate { get; } DateTime VisitDate { get; }
int HearingId { get; } int HearingId { get; }
public int ExecutorId { get; }
} }
} }

View File

@ -2,7 +2,6 @@
using LawFirmContracts.BindingModels; using LawFirmContracts.BindingModels;
using LawFirmContracts.ViewModels; using LawFirmContracts.ViewModels;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace LawFirmDatabaseImplement.Models namespace LawFirmDatabaseImplement.Models
{ {
@ -16,13 +15,6 @@ namespace LawFirmDatabaseImplement.Models
[Required] [Required]
public string Password { get; private set; } = string.Empty; 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) public static Executor? Create(ExecutorBindingModel? model)
{ {
if (model == null) if (model == null)