Поручитель: слой моделей

This commit is contained in:
ityurner02@mail.ru 2023-04-03 19:42:55 +04:00
parent b5452410e5
commit dcb3b63947
7 changed files with 91 additions and 1 deletions

View File

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

View File

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

View File

@ -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<int, IMaterial> LessonMaterials { get; }
}
}

View File

@ -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; }
}
}

View File

@ -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<int, IMaterial> TaskMaterials { get; }
}
}

View File

@ -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<int, IMaterial> TeacherMaterials { get; }
}
}

View File

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