using System; using System.Linq; using Microsoft.EntityFrameworkCore; using xAiApi.AI.Interfaces.Entities; using xAiApi.AI.Models.Entities; using xDataService.Configuration; using xDataService.Db; using xDataService.EFRepositories; using xDataService.Interfaces; namespace xAiApi.Data.Repositories.Ef { /// /// a Repository Pattern Implementation for /// manipulating AiProjects ... /// /// public class XAiProjectEfRepository : XBaseEFRepository, IXAiProjectRepository where TDbContext : XDbContext { // public XAiProjectEfRepository( IXUnitOfWorks unitOfWorks, XDataServiceConfiguration configuration, IXKeyGenerator keyGenerator = null, IXAiProjectEvents baseRepositoryEvents = null ) : base( unitOfWorks, configuration, keyGenerator, baseRepositoryEvents ) { } public override IQueryable GetFullDbSet() { // return dbSet .Include(x => x.Conversations) .ThenInclude(x => x.Messages); } // #region Special ... #endregion } }