45 lines
1.2 KiB
C#
45 lines
1.2 KiB
C#
using System;
|
|
using System.Linq;
|
|
using Microsoft.EntityFrameworkCore;
|
|
using MongoDB.Driver;
|
|
using MongoDB.Driver.Linq;
|
|
using xAiApi.AI.Interfaces.Entities;
|
|
using xAiApi.AI.Models.Entities;
|
|
using xDataService.Configuration;
|
|
using xDataService.Interfaces;
|
|
using xDataService.MongoRepositories;
|
|
|
|
namespace xAiApi.Data.Repositories.Mongo
|
|
{
|
|
/// <summary>
|
|
/// a Repository Pattern Implementation for
|
|
/// manipulating AiProjects ...
|
|
/// </summary>
|
|
public class XAiProjectMongoRepository : XBaseMongoRepository<XAiProject, Guid>, IXAiProjectRepository
|
|
{
|
|
//
|
|
public XAiProjectMongoRepository(
|
|
XDataServiceConfiguration configuration,
|
|
string collectionName = null,
|
|
IXKeyGenerator<XAiProject, Guid> keyGenerator = null,
|
|
IXAiProjectEvents baseRepositoryEvents = null
|
|
) : base(
|
|
configuration,
|
|
collectionName,
|
|
keyGenerator,
|
|
baseRepositoryEvents
|
|
)
|
|
{ }
|
|
|
|
public override IMongoQueryable<XAiProject> GetFullDbSet()
|
|
{
|
|
//
|
|
return collection
|
|
.AsQueryable();
|
|
}
|
|
|
|
//
|
|
#region Special ...
|
|
#endregion
|
|
}
|
|
} |