19 lines
446 B
C#
19 lines
446 B
C#
using System.Linq;
|
|
using Knot.Contracts.Conversations.Domain;
|
|
|
|
namespace Knot.Contracts.Conversations.Infrastructure.Persistence;
|
|
|
|
public interface IChatsDbContext
|
|
{
|
|
IQueryable<Chat> Chats { get; }
|
|
}
|
|
|
|
/// <summary>
|
|
/// Упрощенная проекция чата для запросов (не доменная сущность).
|
|
/// </summary>
|
|
public class Chat
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string? Avatar { get; set; }
|
|
}
|