Модели дпнных

This commit is contained in:
Ismailov_Rovshan 2023-09-06 20:40:13 +04:00
parent 33db1a3e68
commit 93f8b040ca
7 changed files with 86 additions and 1 deletions

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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; }
}
}

View File

@ -1,4 +1,4 @@
using BlogContracts
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using NLog.Extensions.Logging;