37 lines
996 B
C#
37 lines
996 B
C#
using MongoDB.Driver;
|
|
using MongoDB.Driver.Linq;
|
|
using xAiApi.Data.Interfaces;
|
|
using xAiApi.Data.Models.Entities;
|
|
using xDataService.Configuration;
|
|
using xDataService.Interfaces;
|
|
using xDataService.MongoRepositories;
|
|
|
|
namespace xAiApi.Data.Repositories.Mongo
|
|
{
|
|
public class XTestMongoRepository : XBaseMongoRepository<XTest, int>, IXTestRepository
|
|
{
|
|
//
|
|
public XTestMongoRepository(
|
|
XDataServiceConfiguration configuration,
|
|
string collectionName = null,
|
|
IXKeyGenerator<XTest, int> keyGenerator = null,
|
|
IXBaseRepositoryEvents<XTest> baseRepositoryEvents = null
|
|
) : base(
|
|
configuration,
|
|
collectionName,
|
|
keyGenerator,
|
|
baseRepositoryEvents
|
|
)
|
|
{ }
|
|
|
|
public override IMongoQueryable<XTest> GetFullDbSet()
|
|
{
|
|
return collection
|
|
.AsQueryable();
|
|
}
|
|
|
|
//
|
|
#region Special ...
|
|
#endregion
|
|
}
|
|
} |