From 19881247ff2c117d6f44473a83226c815475cf08 Mon Sep 17 00:00:00 2001 From: Danil Markov Date: Tue, 4 Apr 2023 13:43:06 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=BD?= =?UTF-8?q?=D1=8B=20DataModels=20=D0=B4=D0=BB=D1=8F=20=D0=9F=D0=BE=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=B2=D1=89=D0=B8=D0=BA=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- UniversityContracts/Class1.cs | 7 ------- UniversityContracts/UniversityContracts.csproj | 12 ++++++++++++ UniversityModels/Class1.cs | 7 ------- UniversityModels/IId.cs | 13 +++++++++++++ UniversityModels/Models/IDocumentModel.cs | 14 ++++++++++++++ .../Models/IEducationStatusModel.cs | 13 +++++++++++++ UniversityModels/Models/IStudentModel.cs | 17 +++++++++++++++++ 7 files changed, 69 insertions(+), 14 deletions(-) delete mode 100644 UniversityContracts/Class1.cs delete mode 100644 UniversityModels/Class1.cs create mode 100644 UniversityModels/IId.cs create mode 100644 UniversityModels/Models/IDocumentModel.cs create mode 100644 UniversityModels/Models/IEducationStatusModel.cs create mode 100644 UniversityModels/Models/IStudentModel.cs diff --git a/UniversityContracts/Class1.cs b/UniversityContracts/Class1.cs deleted file mode 100644 index 7341e15..0000000 --- a/UniversityContracts/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace Contracts -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/UniversityContracts/UniversityContracts.csproj b/UniversityContracts/UniversityContracts.csproj index 132c02c..5328806 100644 --- a/UniversityContracts/UniversityContracts.csproj +++ b/UniversityContracts/UniversityContracts.csproj @@ -6,4 +6,16 @@ enable + + + + + + + + + + + + diff --git a/UniversityModels/Class1.cs b/UniversityModels/Class1.cs deleted file mode 100644 index 8ed1cc9..0000000 --- a/UniversityModels/Class1.cs +++ /dev/null @@ -1,7 +0,0 @@ -namespace UniversityModels -{ - public class Class1 - { - - } -} \ No newline at end of file diff --git a/UniversityModels/IId.cs b/UniversityModels/IId.cs new file mode 100644 index 0000000..5a364ee --- /dev/null +++ b/UniversityModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace UniversityModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/UniversityModels/Models/IDocumentModel.cs b/UniversityModels/Models/IDocumentModel.cs new file mode 100644 index 0000000..33f093f --- /dev/null +++ b/UniversityModels/Models/IDocumentModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace UniversityModels.Models +{ + public interface IDocumentModel : IId + { + string Name { get; } + DateTime Date { get; } + } +} diff --git a/UniversityModels/Models/IEducationStatusModel.cs b/UniversityModels/Models/IEducationStatusModel.cs new file mode 100644 index 0000000..552ac2c --- /dev/null +++ b/UniversityModels/Models/IEducationStatusModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace UniversityModels.Models +{ + public interface IEducationStatusModel : IId + { + string Name { get; } + } +} diff --git a/UniversityModels/Models/IStudentModel.cs b/UniversityModels/Models/IStudentModel.cs new file mode 100644 index 0000000..6b45b77 --- /dev/null +++ b/UniversityModels/Models/IStudentModel.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace UniversityModels.Models +{ + public interface IStudentModel : IId + { + string Name { get; } + string Surname { get; } + DateTime DateOfBirth { get; } + int StudentCard { get; } + int EducationStatusId { get; } + } +}