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