last ...
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
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
|
||||
{
|
||||
public class XAiConversationEfRepository<TDbContext> : XBaseEFRepository<XAiConversation, Guid, XAiApiDbContext>, IXAiConversationRepository
|
||||
where TDbContext : XDbContext
|
||||
{
|
||||
//
|
||||
public XAiConversationEfRepository(
|
||||
IXUnitOfWorks<XAiApiDbContext> unitOfWorks,
|
||||
XDataServiceConfiguration configuration,
|
||||
IXKeyGenerator<XAiConversation, Guid> keyGenerator = null,
|
||||
IXAiConversationEvents baseRepositoryEvents = null
|
||||
) : base(
|
||||
unitOfWorks,
|
||||
configuration,
|
||||
keyGenerator,
|
||||
baseRepositoryEvents
|
||||
)
|
||||
{ }
|
||||
|
||||
public override IQueryable<XAiConversation> GetFullDbSet()
|
||||
{
|
||||
return dbSet;
|
||||
}
|
||||
|
||||
//
|
||||
#region Special ...
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
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
|
||||
{
|
||||
public class XAiMessageEfRepository<TDbContext> : XBaseEFRepository<XAiMessage, Guid, XAiApiDbContext>, IXAiMessageRepository
|
||||
where TDbContext : XDbContext
|
||||
{
|
||||
//
|
||||
public XAiMessageEfRepository(
|
||||
IXUnitOfWorks<XAiApiDbContext> unitOfWorks,
|
||||
XDataServiceConfiguration configuration,
|
||||
IXKeyGenerator<XAiMessage, Guid> keyGenerator = null,
|
||||
IXAiMessageEvents baseRepositoryEvents = null
|
||||
) : base(
|
||||
unitOfWorks,
|
||||
configuration,
|
||||
keyGenerator,
|
||||
baseRepositoryEvents
|
||||
)
|
||||
{ }
|
||||
|
||||
public override IQueryable<XAiMessage> GetFullDbSet()
|
||||
{
|
||||
return dbSet;
|
||||
}
|
||||
|
||||
//
|
||||
#region Special ...
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System;
|
||||
using System.Linq;
|
||||
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
|
||||
{
|
||||
public class XAiProjectEfRepository<TDbContext> : XBaseEFRepository<XAiProject, Guid, XAiApiDbContext>, IXAiProjectRepository
|
||||
where TDbContext : XDbContext
|
||||
{
|
||||
//
|
||||
public XAiProjectEfRepository(
|
||||
IXUnitOfWorks<XAiApiDbContext> unitOfWorks,
|
||||
XDataServiceConfiguration configuration,
|
||||
IXKeyGenerator<XAiProject, Guid> keyGenerator = null,
|
||||
IXAiProjectEvents baseRepositoryEvents = null
|
||||
) : base(
|
||||
unitOfWorks,
|
||||
configuration,
|
||||
keyGenerator,
|
||||
baseRepositoryEvents
|
||||
)
|
||||
{ }
|
||||
|
||||
public override IQueryable<XAiProject> GetFullDbSet()
|
||||
{
|
||||
return dbSet;
|
||||
}
|
||||
|
||||
//
|
||||
#region Special ...
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user