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