Модели дпнных
This commit is contained in:
parent
33db1a3e68
commit
93f8b040ca
13
BlogDataModels/BlogDataModels/ICategoryModel.cs
Normal file
13
BlogDataModels/BlogDataModels/ICategoryModel.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ForumDataModels
|
||||
{
|
||||
public interface ICategoryModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
}
|
||||
}
|
13
BlogDataModels/BlogDataModels/IId.cs
Normal file
13
BlogDataModels/BlogDataModels/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 ForumDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
14
BlogDataModels/BlogDataModels/IMessageModel.cs
Normal file
14
BlogDataModels/BlogDataModels/IMessageModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ForumDataModels
|
||||
{
|
||||
public interface IMessageModel : IId
|
||||
{
|
||||
string Text { get; }
|
||||
DateTime Date { get; }
|
||||
}
|
||||
}
|
13
BlogDataModels/BlogDataModels/IRoleModel.cs
Normal file
13
BlogDataModels/BlogDataModels/IRoleModel.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ForumDataModels
|
||||
{
|
||||
public interface IRoleModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
}
|
||||
}
|
15
BlogDataModels/BlogDataModels/ITopicModel.cs
Normal file
15
BlogDataModels/BlogDataModels/ITopicModel.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ForumDataModels
|
||||
{
|
||||
public interface ITopicModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
|
||||
int CategoryId { get; }
|
||||
}
|
||||
}
|
17
BlogDataModels/BlogDataModels/IUserModel.cs
Normal file
17
BlogDataModels/BlogDataModels/IUserModel.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ForumDataModels
|
||||
{
|
||||
public interface IUserModel : IId
|
||||
{
|
||||
string Username { get; }
|
||||
string Email { get; }
|
||||
string Password { get; }
|
||||
DateTime RegistrationDate { get; }
|
||||
int RoleId { get; }
|
||||
}
|
||||
}
|
@ -1,4 +1,4 @@
|
||||
|
||||
using BlogContracts
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using NLog.Extensions.Logging;
|
||||
|
Loading…
Reference in New Issue
Block a user