From dcb3b63947a0b446d6695d4691511bdae09e1416 Mon Sep 17 00:00:00 2001 From: "ityurner02@mail.ru" Date: Mon, 3 Apr 2023 19:42:55 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9F=D0=BE=D1=80=D1=83=D1=87=D0=B8=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C:=20=D1=81=D0=BB=D0=BE=D0=B9=20=D0=BC=D0=BE?= =?UTF-8?q?=D0=B4=D0=B5=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SchoolAgainStudy/SchoolAgainStudy.sln | 8 +++++++- .../SchoolAgainStudyDataModels/IId.cs | 7 +++++++ .../Models/ILesson.cs | 19 +++++++++++++++++++ .../Models/IMaterial.cs | 14 ++++++++++++++ .../Models/ITask.cs | 17 +++++++++++++++++ .../Models/ITeacher.cs | 18 ++++++++++++++++++ .../SchoolAgainStudyDataModels.csproj | 9 +++++++++ 7 files changed, 91 insertions(+), 1 deletion(-) create mode 100644 SchoolAgainStudy/SchoolAgainStudyDataModels/IId.cs create mode 100644 SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ILesson.cs create mode 100644 SchoolAgainStudy/SchoolAgainStudyDataModels/Models/IMaterial.cs create mode 100644 SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITask.cs create mode 100644 SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITeacher.cs create mode 100644 SchoolAgainStudy/SchoolAgainStudyDataModels/SchoolAgainStudyDataModels.csproj diff --git a/SchoolAgainStudy/SchoolAgainStudy.sln b/SchoolAgainStudy/SchoolAgainStudy.sln index 48bbc41..0321d8d 100644 --- a/SchoolAgainStudy/SchoolAgainStudy.sln +++ b/SchoolAgainStudy/SchoolAgainStudy.sln @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.5.33414.496 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchoolAgainStudy", "SchoolAgainStudy\SchoolAgainStudy.csproj", "{4D41BF0A-F462-45D6-9488-C11CB7711E34}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SchoolAgainStudy", "SchoolAgainStudy\SchoolAgainStudy.csproj", "{4D41BF0A-F462-45D6-9488-C11CB7711E34}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SchoolAgainStudyDataModels", "SchoolAgainStudyDataModels\SchoolAgainStudyDataModels.csproj", "{F4F2EDE5-975A-4A60-8C1F-9AEF303AC0B3}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +17,10 @@ Global {4D41BF0A-F462-45D6-9488-C11CB7711E34}.Debug|Any CPU.Build.0 = Debug|Any CPU {4D41BF0A-F462-45D6-9488-C11CB7711E34}.Release|Any CPU.ActiveCfg = Release|Any CPU {4D41BF0A-F462-45D6-9488-C11CB7711E34}.Release|Any CPU.Build.0 = Release|Any CPU + {F4F2EDE5-975A-4A60-8C1F-9AEF303AC0B3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F4F2EDE5-975A-4A60-8C1F-9AEF303AC0B3}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F4F2EDE5-975A-4A60-8C1F-9AEF303AC0B3}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F4F2EDE5-975A-4A60-8C1F-9AEF303AC0B3}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/SchoolAgainStudy/SchoolAgainStudyDataModels/IId.cs b/SchoolAgainStudy/SchoolAgainStudyDataModels/IId.cs new file mode 100644 index 0000000..31e667f --- /dev/null +++ b/SchoolAgainStudy/SchoolAgainStudyDataModels/IId.cs @@ -0,0 +1,7 @@ +namespace SchoolAgainStudyDataModels +{ + public interface IId + { + int Id { get; } + } +} \ No newline at end of file diff --git a/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ILesson.cs b/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ILesson.cs new file mode 100644 index 0000000..63c041f --- /dev/null +++ b/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ILesson.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolAgainStudyDataModels.Models +{ + public interface ILesson : IId + { + string Title { get; } + DateTime DateEvent { get; } + int ProductId { get; } + string ProductName { get; } + int TeacherId { get; } + Dictionary LessonMaterials { get; } + + } +} diff --git a/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/IMaterial.cs b/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/IMaterial.cs new file mode 100644 index 0000000..a6610ab --- /dev/null +++ b/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/IMaterial.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolAgainStudyDataModels.Models +{ + public interface IMaterial : IId + { + string Title { get; } + string SphereUse { get; } + } +} diff --git a/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITask.cs b/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITask.cs new file mode 100644 index 0000000..949abb2 --- /dev/null +++ b/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITask.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolAgainStudyDataModels.Models +{ + public interface ITask : IId + { + string Title { get; } + DateTime DateIssue { get; } + DateTime DateDelivery { get; } + int TeacherId { get; } + Dictionary TaskMaterials { get; } + } +} diff --git a/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITeacher.cs b/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITeacher.cs new file mode 100644 index 0000000..21bfbd3 --- /dev/null +++ b/SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITeacher.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SchoolAgainStudyDataModels.Models +{ + public interface ITeacher : IId + { + string Name { get; } + string Post { get; } + string Phone { get; } + string Login { get; } + string Password { get; } + Dictionary TeacherMaterials { get; } + } +} diff --git a/SchoolAgainStudy/SchoolAgainStudyDataModels/SchoolAgainStudyDataModels.csproj b/SchoolAgainStudy/SchoolAgainStudyDataModels/SchoolAgainStudyDataModels.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/SchoolAgainStudy/SchoolAgainStudyDataModels/SchoolAgainStudyDataModels.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + +