Разделение
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Knot.Contracts.Conversations.Application.Abstractions;
|
||||
using Knot.Shared.Kernel;
|
||||
|
||||
namespace Knot.Contracts.Conversations.Infrastructure.Persistence;
|
||||
|
||||
public interface IChatsDbContext : IChatsUnitOfWork
|
||||
{
|
||||
IQueryable<Chat> Chats { get; }
|
||||
}
|
||||
|
||||
public class Chat : AggregateRoot<Guid>
|
||||
{
|
||||
public Chat() : base(Guid.NewGuid()) { }
|
||||
|
||||
|
||||
public string? Avatar { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user