From 35bc837d822eb7e090ec20aec9fd0739c3021f65 Mon Sep 17 00:00:00 2001 From: abazov73 <92822431+abazov73@users.noreply.github.com> Date: Thu, 16 Nov 2023 19:01:46 +0400 Subject: [PATCH] Lab03: create DataModels project --- .../AccountsDataModels/AccountsDataModels.csproj | 9 +++++++++ AbazovApp/AccountsDataModels/IId.cs | 13 +++++++++++++ .../AccountsDataModels/Models/IAccountModel.cs | 15 +++++++++++++++ .../AccountsDataModels/Models/IInterestModel.cs | 13 +++++++++++++ 4 files changed, 50 insertions(+) create mode 100644 AbazovApp/AccountsDataModels/AccountsDataModels.csproj create mode 100644 AbazovApp/AccountsDataModels/IId.cs create mode 100644 AbazovApp/AccountsDataModels/Models/IAccountModel.cs create mode 100644 AbazovApp/AccountsDataModels/Models/IInterestModel.cs diff --git a/AbazovApp/AccountsDataModels/AccountsDataModels.csproj b/AbazovApp/AccountsDataModels/AccountsDataModels.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/AbazovApp/AccountsDataModels/AccountsDataModels.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/AbazovApp/AccountsDataModels/IId.cs b/AbazovApp/AccountsDataModels/IId.cs new file mode 100644 index 0000000..03a4e56 --- /dev/null +++ b/AbazovApp/AccountsDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AccountsDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/AbazovApp/AccountsDataModels/Models/IAccountModel.cs b/AbazovApp/AccountsDataModels/Models/IAccountModel.cs new file mode 100644 index 0000000..f1d6ecd --- /dev/null +++ b/AbazovApp/AccountsDataModels/Models/IAccountModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AccountsDataModels.Models +{ + public interface IAccountModel : IId + { + string Login { get; } + string Password { get; } + string Email { get; } + } +} diff --git a/AbazovApp/AccountsDataModels/Models/IInterestModel.cs b/AbazovApp/AccountsDataModels/Models/IInterestModel.cs new file mode 100644 index 0000000..b6094ca --- /dev/null +++ b/AbazovApp/AccountsDataModels/Models/IInterestModel.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AccountsDataModels.Models +{ + public interface IInterestModel : IId + { + string Name { get; } + } +}