public MongoKeylessBaseRepository(MongodbContext <TMongoSetting> mongoDatabase, ILogger logger, MongoCollectionSettings mongoCollectionSettings = default) { var mongoDatabase1 = mongoDatabase.GetDateBase(); var collectionName = MongoCollectionNameCache.GetCollectionName <TEntity>(); Collection = mongoDatabase1.GetCollection <TEntity>(collectionName, mongoCollectionSettings); _logger = logger; }
public NoSqlBaseRepository(MongodbContext <TMongoSetting> mongoDatabase, ILogger logger) : base(mongoDatabase, logger) { this._logger = logger; }