Поручитель: слой моделей
This commit is contained in:
parent
b5452410e5
commit
dcb3b63947
@ -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
|
||||
|
7
SchoolAgainStudy/SchoolAgainStudyDataModels/IId.cs
Normal file
7
SchoolAgainStudy/SchoolAgainStudyDataModels/IId.cs
Normal file
@ -0,0 +1,7 @@
|
||||
namespace SchoolAgainStudyDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
17
SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITask.cs
Normal file
17
SchoolAgainStudy/SchoolAgainStudyDataModels/Models/ITask.cs
Normal 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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user