Слой моделей Егора сделан
This commit is contained in:
parent
cc3232df6b
commit
f29376d4d8
7
University/DataModels/IId.cs
Normal file
7
University/DataModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace University.DataModels
|
||||||
|
{
|
||||||
|
public interface IId
|
||||||
|
{
|
||||||
|
int Id { get; }
|
||||||
|
}
|
||||||
|
}
|
17
University/DataModels/IPerson.cs
Normal file
17
University/DataModels/IPerson.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
9
University/DataModels/Models/IDiscipline.cs
Normal file
9
University/DataModels/Models/IDiscipline.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace University.DataModels.Models
|
||||||
|
{
|
||||||
|
public interface IDiscipline : IId
|
||||||
|
{
|
||||||
|
int TeacherId { get; }
|
||||||
|
string Name { get; set; }
|
||||||
|
string Description { get; set; }
|
||||||
|
}
|
||||||
|
}
|
9
University/DataModels/Models/IStatement.cs
Normal file
9
University/DataModels/Models/IStatement.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace University.DataModels.Models
|
||||||
|
{
|
||||||
|
public interface IStatement : IId
|
||||||
|
{
|
||||||
|
int TeacherId { get; }
|
||||||
|
string Name { get; }
|
||||||
|
DateTime Date { get; }
|
||||||
|
}
|
||||||
|
}
|
6
University/DataModels/Models/IStorekeeper.cs
Normal file
6
University/DataModels/Models/IStorekeeper.cs
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
namespace University.DataModels.Models
|
||||||
|
{
|
||||||
|
public interface IStorekeeper : IPerson
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
9
University/DataModels/Models/IStudent.cs
Normal file
9
University/DataModels/Models/IStudent.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
10
University/DataModels/Models/ITeacher.cs
Normal file
10
University/DataModels/Models/ITeacher.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +0,0 @@
|
|||||||
namespace University.Models
|
|
||||||
{
|
|
||||||
public interface IStatement
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,7 +0,0 @@
|
|||||||
namespace Models
|
|
||||||
{
|
|
||||||
public interface ISubject
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,6 +0,0 @@
|
|||||||
namespace University.Models
|
|
||||||
{
|
|
||||||
public interface ITeacher
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net8.0</TargetFramework>
|
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
|
||||||
<Nullable>enable</Nullable>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
</Project>
|
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user