From f29376d4d84e2e201f504811429f29295de2c9be Mon Sep 17 00:00:00 2001 From: GokaPek Date: Mon, 15 Apr 2024 20:26:19 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BB=D0=BE=D0=B9=20=D0=BC=D0=BE=D0=B4?= =?UTF-8?q?=D0=B5=D0=BB=D0=B5=D0=B9=20=D0=95=D0=B3=D0=BE=D1=80=D0=B0=20?= =?UTF-8?q?=D1=81=D0=B4=D0=B5=D0=BB=D0=B0=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- University/DataModels/IId.cs | 7 ++++++ University/DataModels/IPerson.cs | 17 +++++++++++++ University/DataModels/Models/IDiscipline.cs | 9 +++++++ University/DataModels/Models/IStatement.cs | 9 +++++++ University/DataModels/Models/IStorekeeper.cs | 6 +++++ University/DataModels/Models/IStudent.cs | 9 +++++++ University/DataModels/Models/ITeacher.cs | 10 ++++++++ University/Models/IStatement.cs | 6 ----- University/Models/ISubject.cs | 7 ------ University/Models/ITeacher.cs | 6 ----- University/Models/Models.csproj | 9 ------- University/Models/Models.sln | 25 -------------------- 12 files changed, 67 insertions(+), 53 deletions(-) create mode 100644 University/DataModels/IId.cs create mode 100644 University/DataModels/IPerson.cs create mode 100644 University/DataModels/Models/IDiscipline.cs create mode 100644 University/DataModels/Models/IStatement.cs create mode 100644 University/DataModels/Models/IStorekeeper.cs create mode 100644 University/DataModels/Models/IStudent.cs create mode 100644 University/DataModels/Models/ITeacher.cs delete mode 100644 University/Models/IStatement.cs delete mode 100644 University/Models/ISubject.cs delete mode 100644 University/Models/ITeacher.cs delete mode 100644 University/Models/Models.csproj delete mode 100644 University/Models/Models.sln diff --git a/University/DataModels/IId.cs b/University/DataModels/IId.cs new file mode 100644 index 0000000..4f33abd --- /dev/null +++ b/University/DataModels/IId.cs @@ -0,0 +1,7 @@ +namespace University.DataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/University/DataModels/IPerson.cs b/University/DataModels/IPerson.cs new file mode 100644 index 0000000..0cd8f95 --- /dev/null +++ b/University/DataModels/IPerson.cs @@ -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; } + } +} diff --git a/University/DataModels/Models/IDiscipline.cs b/University/DataModels/Models/IDiscipline.cs new file mode 100644 index 0000000..20517ca --- /dev/null +++ b/University/DataModels/Models/IDiscipline.cs @@ -0,0 +1,9 @@ +namespace University.DataModels.Models +{ + public interface IDiscipline : IId + { + int TeacherId { get; } + string Name { get; set; } + string Description { get; set; } + } +} diff --git a/University/DataModels/Models/IStatement.cs b/University/DataModels/Models/IStatement.cs new file mode 100644 index 0000000..5ef64f8 --- /dev/null +++ b/University/DataModels/Models/IStatement.cs @@ -0,0 +1,9 @@ +namespace University.DataModels.Models +{ + public interface IStatement : IId + { + int TeacherId { get; } + string Name { get; } + DateTime Date { get; } + } +} diff --git a/University/DataModels/Models/IStorekeeper.cs b/University/DataModels/Models/IStorekeeper.cs new file mode 100644 index 0000000..428510f --- /dev/null +++ b/University/DataModels/Models/IStorekeeper.cs @@ -0,0 +1,6 @@ +namespace University.DataModels.Models +{ + public interface IStorekeeper : IPerson + { + } +} diff --git a/University/DataModels/Models/IStudent.cs b/University/DataModels/Models/IStudent.cs new file mode 100644 index 0000000..a589534 --- /dev/null +++ b/University/DataModels/Models/IStudent.cs @@ -0,0 +1,9 @@ +namespace University.DataModels.Models +{ + public interface IStudent : IId + { + string Name { get; } + public string PhoneNumber { get; } + Dictionary StudentDisciplines { get; } + } +} diff --git a/University/DataModels/Models/ITeacher.cs b/University/DataModels/Models/ITeacher.cs new file mode 100644 index 0000000..50c59b0 --- /dev/null +++ b/University/DataModels/Models/ITeacher.cs @@ -0,0 +1,10 @@ +namespace University.DataModels.Models +{ + public interface ITeacher : IId + { + int StorekeeperId { get; } + string Name { get; } + string AcademicDegree { get; } + string Position { get; } + } +} diff --git a/University/Models/IStatement.cs b/University/Models/IStatement.cs deleted file mode 100644 index bd4ccad..0000000 --- a/University/Models/IStatement.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace University.Models -{ - public interface IStatement - { - } -} diff --git a/University/Models/ISubject.cs b/University/Models/ISubject.cs deleted file mode 100644 index a898013..0000000 --- a/University/Models/ISubject.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Models -{ - public interface ISubject - { - - } -} diff --git a/University/Models/ITeacher.cs b/University/Models/ITeacher.cs deleted file mode 100644 index 5b56a5a..0000000 --- a/University/Models/ITeacher.cs +++ /dev/null @@ -1,6 +0,0 @@ -namespace University.Models -{ - public interface ITeacher - { - } -} diff --git a/University/Models/Models.csproj b/University/Models/Models.csproj deleted file mode 100644 index fa71b7a..0000000 --- a/University/Models/Models.csproj +++ /dev/null @@ -1,9 +0,0 @@ - - - - net8.0 - enable - enable - - - diff --git a/University/Models/Models.sln b/University/Models/Models.sln deleted file mode 100644 index 2bb3ab0..0000000 --- a/University/Models/Models.sln +++ /dev/null @@ -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