Lab03: create DataModels project
This commit is contained in:
parent
42b90c4d90
commit
35bc837d82
9
AbazovApp/AccountsDataModels/AccountsDataModels.csproj
Normal file
9
AbazovApp/AccountsDataModels/AccountsDataModels.csproj
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
13
AbazovApp/AccountsDataModels/IId.cs
Normal file
13
AbazovApp/AccountsDataModels/IId.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
15
AbazovApp/AccountsDataModels/Models/IAccountModel.cs
Normal file
15
AbazovApp/AccountsDataModels/Models/IAccountModel.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
13
AbazovApp/AccountsDataModels/Models/IInterestModel.cs
Normal file
13
AbazovApp/AccountsDataModels/Models/IInterestModel.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user