убила и воскресила дата моделс
This commit is contained in:
parent
4161502a01
commit
1553d998d3
@ -3,24 +3,20 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.9.34723.18
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LawCompanyDataModels", "LawCompany\LawCompanyDataModels.csproj", "{E38D3745-25B2-45EC-B47E-14C6100C9413}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LawCompanyContracts", "LawCompanyContracts\LawCompanyContracts.csproj", "{DD8E5EB4-CA20-4C49-9DBF-F9778202331B}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LawCompanyBusinessLogic", "LawCompanyBusinessLogic\LawCompanyBusinessLogic.csproj", "{14D20CC6-D50F-4674-AC2A-4F80C85EDB4D}"
|
||||
EndProject
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LawCompanyDatabaseImplement", "LawCompanyDatabaseImplement\LawCompanyDatabaseImplement.csproj", "{9A4CBD1F-020F-4036-A71D-AB6BF3489EE0}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LawCompanyDataModels", "LawCompanyDataModels\LawCompanyDataModels.csproj", "{152E41DA-5E16-41FE-BA0A-20488C16AA34}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{E38D3745-25B2-45EC-B47E-14C6100C9413}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E38D3745-25B2-45EC-B47E-14C6100C9413}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E38D3745-25B2-45EC-B47E-14C6100C9413}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E38D3745-25B2-45EC-B47E-14C6100C9413}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{DD8E5EB4-CA20-4C49-9DBF-F9778202331B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{DD8E5EB4-CA20-4C49-9DBF-F9778202331B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DD8E5EB4-CA20-4C49-9DBF-F9778202331B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
@ -33,6 +29,10 @@ Global
|
||||
{9A4CBD1F-020F-4036-A71D-AB6BF3489EE0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9A4CBD1F-020F-4036-A71D-AB6BF3489EE0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9A4CBD1F-020F-4036-A71D-AB6BF3489EE0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{152E41DA-5E16-41FE-BA0A-20488C16AA34}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{152E41DA-5E16-41FE-BA0A-20488C16AA34}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{152E41DA-5E16-41FE-BA0A-20488C16AA34}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{152E41DA-5E16-41FE-BA0A-20488C16AA34}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -11,8 +11,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LawCompanyContracts\LawCompanyContracts.csproj" />
|
||||
<ProjectReference Include="..\LawCompany\LawCompanyDataModels.csproj" />
|
||||
<ProjectReference Include="..\LawCompanyContracts\LawCompanyContracts.csproj" />
|
||||
<ProjectReference Include="..\LawCompanyDataModels\LawCompanyDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
@ -7,7 +7,7 @@
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LawCompany\LawCompanyDataModels.csproj" />
|
||||
<ProjectReference Include="..\LawCompanyDataModels\LawCompanyDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
11
LawCompany/LawCompanyDataModels/Enums/CaseStatus.cs
Normal file
11
LawCompany/LawCompanyDataModels/Enums/CaseStatus.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace LawCompanyDataModels.Enums
|
||||
{
|
||||
public enum CaseStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
Принято = 0,
|
||||
АнализДелаИПодготовкаДокументов = 1,
|
||||
СлушанияДела = 2,
|
||||
ЗакрытиеДела = 3
|
||||
}
|
||||
}
|
7
LawCompany/LawCompanyDataModels/IId.cs
Normal file
7
LawCompany/LawCompanyDataModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace LawCompanyDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
16
LawCompany/LawCompanyDataModels/LawCompanyDataModels.csproj
Normal file
16
LawCompany/LawCompanyDataModels/LawCompanyDataModels.csproj
Normal file
@ -0,0 +1,16 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.17">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
15
LawCompany/LawCompanyDataModels/Models/ICaseModel.cs
Normal file
15
LawCompany/LawCompanyDataModels/Models/ICaseModel.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using LawCompanyDataModels.Enums;
|
||||
|
||||
namespace LawCompanyDataModels.Models
|
||||
{
|
||||
public interface ICaseModel : IId
|
||||
{
|
||||
Dictionary<int, IClientModel> CaseClients { get; }
|
||||
string Name { get; }
|
||||
CaseStatus Status { get; }
|
||||
string CaseType { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
public int ExecutorId { get; }
|
||||
}
|
||||
}
|
10
LawCompany/LawCompanyDataModels/Models/IClientModel.cs
Normal file
10
LawCompany/LawCompanyDataModels/Models/IClientModel.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace LawCompanyDataModels.Models
|
||||
{
|
||||
public interface IClientModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Phone { get; }
|
||||
string Email { get; }
|
||||
public int ExecutorId { get; }
|
||||
}
|
||||
}
|
11
LawCompany/LawCompanyDataModels/Models/IConsultationModel.cs
Normal file
11
LawCompany/LawCompanyDataModels/Models/IConsultationModel.cs
Normal file
@ -0,0 +1,11 @@
|
||||
namespace LawCompanyDataModels.Models
|
||||
{
|
||||
public interface IConsultationModel : IId
|
||||
{
|
||||
Dictionary<int, ILawyerModel> ConsultationLawyers { get; }
|
||||
double Cost { get; }
|
||||
DateTime ConsultationDate { get; }
|
||||
public int CaseId { get; }
|
||||
public int GuarantorId { get; }
|
||||
}
|
||||
}
|
9
LawCompany/LawCompanyDataModels/Models/IExecutorModel.cs
Normal file
9
LawCompany/LawCompanyDataModels/Models/IExecutorModel.cs
Normal file
@ -0,0 +1,9 @@
|
||||
namespace LawCompanyDataModels.Models
|
||||
{
|
||||
public interface IExecutorModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Email { get; }
|
||||
string Password { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace LawCompanyDataModels.Models
|
||||
{
|
||||
public interface IGuarantorModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Email { get; }
|
||||
string Password { get; }
|
||||
}
|
||||
}
|
10
LawCompany/LawCompanyDataModels/Models/IHearingModel.cs
Normal file
10
LawCompany/LawCompanyDataModels/Models/IHearingModel.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace LawCompanyDataModels.Models
|
||||
{
|
||||
public interface IHearingModel : IId
|
||||
{
|
||||
Dictionary<int, ILawyerModel> HearingLawyers { get; }
|
||||
DateTime HearingDate { get; }
|
||||
string Judge { get; }
|
||||
public int GuarantorId { get; }
|
||||
}
|
||||
}
|
16
LawCompany/LawCompanyDataModels/Models/ILawyerModel.cs
Normal file
16
LawCompany/LawCompanyDataModels/Models/ILawyerModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LawCompanyDataModels.Models
|
||||
{
|
||||
public interface ILawyerModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Phone { get; }
|
||||
string Email { get; }
|
||||
public int GuarantorId { get; }
|
||||
}
|
||||
}
|
10
LawCompany/LawCompanyDataModels/Models/IVisitModel.cs
Normal file
10
LawCompany/LawCompanyDataModels/Models/IVisitModel.cs
Normal file
@ -0,0 +1,10 @@
|
||||
namespace LawCompanyDataModels.Models
|
||||
{
|
||||
public interface IVisitModel : IId
|
||||
{
|
||||
Dictionary<int, IClientModel> VisitClients { get; }
|
||||
DateTime VisitDate { get; }
|
||||
int HearingId { get; }
|
||||
public int ExecutorId { get; }
|
||||
}
|
||||
}
|
@ -15,7 +15,7 @@ namespace LawCompanyDatabaseImplement
|
||||
{
|
||||
if (optionsBuilder.IsConfigured == false)
|
||||
{
|
||||
// optionsBuilder.UseSqlServer(@"Data Source=LAPTOP-6GNIALH9\SQLEXPRESS;Initial Catalog=LawCompanyDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
optionsBuilder.UseSqlServer(@"Data Source=LAPTOP-6GNIALH9\SQLEXPRESS;Initial Catalog=LawCompanyDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
|
@ -13,7 +13,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\LawCompanyContracts\LawCompanyContracts.csproj" />
|
||||
<ProjectReference Include="..\LawCompany\LawCompanyDataModels.csproj" />
|
||||
<ProjectReference Include="..\LawCompanyDataModels\LawCompanyDataModels.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
Loading…
Reference in New Issue
Block a user