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;
        }
Exemplo n.º 2
0
 public NoSqlBaseRepository(MongodbContext <TMongoSetting> mongoDatabase, ILogger logger)
     : base(mongoDatabase, logger)
 {
     this._logger = logger;
 }