Слой моделей Егора сделан

This commit is contained in:
GokaPek 2024-04-15 20:26:19 +04:00
parent cc3232df6b
commit f29376d4d8
12 changed files with 67 additions and 53 deletions

View File

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

View File

@ -0,0 +1,17 @@
using System.ComponentModel.DataAnnotations;
namespace University.DataModels
{
public interface IPerson : IId
{
public string FirstName { get; }
public string LastName { get; }
public string MiddleName { get; }
public string PhoneNumber { get; }
public string Email { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace University.DataModels.Models
{
public interface IDiscipline : IId
{
int TeacherId { get; }
string Name { get; set; }
string Description { get; set; }
}
}

View File

@ -0,0 +1,9 @@
namespace University.DataModels.Models
{
public interface IStatement : IId
{
int TeacherId { get; }
string Name { get; }
DateTime Date { get; }
}
}

View File

@ -0,0 +1,6 @@
namespace University.DataModels.Models
{
public interface IStorekeeper : IPerson
{
}
}

View File

@ -0,0 +1,9 @@
namespace University.DataModels.Models
{
public interface IStudent : IId
{
string Name { get; }
public string PhoneNumber { get; }
Dictionary<int, (IDiscipline, int)> StudentDisciplines { get; }
}
}

View File

@ -0,0 +1,10 @@
namespace University.DataModels.Models
{
public interface ITeacher : IId
{
int StorekeeperId { get; }
string Name { get; }
string AcademicDegree { get; }
string Position { get; }
}
}

View File

@ -1,6 +0,0 @@
namespace University.Models
{
public interface IStatement
{
}
}

View File

@ -1,7 +0,0 @@
namespace Models
{
public interface ISubject
{
}
}

View File

@ -1,6 +0,0 @@
namespace University.Models
{
public interface ITeacher
{
}
}

View File

@ -1,9 +0,0 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

View File

@ -1,25 +0,0 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.9.34723.18
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Models", "Models.csproj", "{FB786E71-63DD-4C94-971F-AC23B8541F4D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{FB786E71-63DD-4C94-971F-AC23B8541F4D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{FB786E71-63DD-4C94-971F-AC23B8541F4D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{FB786E71-63DD-4C94-971F-AC23B8541F4D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{FB786E71-63DD-4C94-971F-AC23B8541F4D}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {1AA47FF1-A976-4E6E-B470-644BC0E19E2B}
EndGlobalSection
EndGlobal