Compare commits
No commits in common. "99b8127bf8fb7ad9b4c28c245ed1d26dc9c64980" and "45a6a528822e863c1cdc6ffcd484f4bb3afe6ee4" have entirely different histories.
99b8127bf8
...
45a6a52882
@ -10,6 +10,5 @@ namespace LawFimDataModels.Models
|
||||
string CaseType { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
public int ExecutorId { get; }
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,5 @@
|
||||
string FIO { get; }
|
||||
string Phone { get; }
|
||||
string Email { get; }
|
||||
public int ExecutorId { get; }
|
||||
}
|
||||
}
|
||||
|
@ -5,6 +5,5 @@
|
||||
Dictionary<int, IClientModel> VisitClients { get; }
|
||||
DateTime VisitDate { get; }
|
||||
int HearingId { get; }
|
||||
public int ExecutorId { get; }
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,6 @@
|
||||
using LawFirmContracts.BindingModels;
|
||||
using LawFirmContracts.ViewModels;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
|
||||
namespace LawFirmDatabaseImplement.Models
|
||||
{
|
||||
@ -16,13 +15,6 @@ 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…
Reference in New Issue
Block a user