This commit is contained in:
2026-04-24 22:06:13 +03:30
parent e49c273171
commit bb5dc64a7d
11 changed files with 682 additions and 59 deletions
@@ -1,5 +1,6 @@
using System;
using System.Linq;
using Microsoft.EntityFrameworkCore;
using xAiApi.AI.Interfaces.Entities;
using xAiApi.AI.Models.Entities;
using xDataService.Configuration;
@@ -9,6 +10,11 @@ using xDataService.Interfaces;
namespace xAiApi.Data.Repositories.Ef
{
/// <summary>
/// a Repository Pattern Implementation for
/// manipulating AiMessage ...
/// </summary>
/// <typeparam name="TDbContext"></typeparam>
public class XAiMessageEfRepository<TDbContext> : XBaseEFRepository<XAiMessage, Guid, XAiApiDbContext>, IXAiMessageRepository
where TDbContext : XDbContext
{
@@ -28,7 +34,9 @@ namespace xAiApi.Data.Repositories.Ef
public override IQueryable<XAiMessage> GetFullDbSet()
{
return dbSet;
//
return dbSet
.Include(x => x.Conversation);
}
//