Модель

This commit is contained in:
goblinrf 2024-04-22 13:37:13 +04:00
parent ef07c758dc
commit 98f43a5b12
9 changed files with 142 additions and 0 deletions

31
VetClinic/VetClinic.sln Normal file
View File

@ -0,0 +1,31 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34622.214
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "VetClinicBusinessLogic", "VetClinicBusinessLogic\VetClinicBusinessLogic.csproj", "{85BD062C-3826-4326-A09D-2A3BC07C7856}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "VetClinicDataModels", "VetClinicDataModels\VetClinicDataModels.csproj", "{F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{85BD062C-3826-4326-A09D-2A3BC07C7856}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{85BD062C-3826-4326-A09D-2A3BC07C7856}.Debug|Any CPU.Build.0 = Debug|Any CPU
{85BD062C-3826-4326-A09D-2A3BC07C7856}.Release|Any CPU.ActiveCfg = Release|Any CPU
{85BD062C-3826-4326-A09D-2A3BC07C7856}.Release|Any CPU.Build.0 = Release|Any CPU
{F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F8D5504B-8955-45E7-BF6B-3ABB7C3DC1BC}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {8D1AF4D2-05F5-41A9-A9F5-7318C88EE80F}
EndGlobalSection
EndGlobal

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VetClinicBusinessLogic.BusinessLogics
{
internal class AdminLogic
{
}
}

View File

@ -0,0 +1,13 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NETCore.App" Version="2.1.30" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,7 @@
namespace VetClinicDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,11 @@

namespace VetClinicDataModels.Models
{
public interface IAdminModel
{
string ClientFIO { get; }
string Email { get; }
string Password { get; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VetClinicDataModels.Models
{
public interface IAnimalModel
{
int AdminId { get; }
string AnimalName { get; }
string? Family { get; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VetClinicDataModels.Models
{
public interface IVaccinationModel
{
int AnimalId { get; }
string NameVaccination { get; }
double CostVaccination { get; }
DateTime DateStamp { get; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace VetClinicDataModels.Models
{
public interface IVisitModel
{
int VisitId { get;}
int ServiceId { get; }
int AdminId { get; }
string NameVisit { get;}
DateTime DateVisit { get; }
}
}

View File

@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="8.0.4">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
</Project>