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 + + +