Beispiel #1
0
        public MongoBaseRepository(IMongoConfigurationSettings settings)
        {
            var client   = new MongoClient(settings.ConnectionString);
            var database = client.GetDatabase(settings.DatabaseName);

            _collectionItem = database.GetCollection <T>(settings.CollectionName);
        }
Beispiel #2
0
 public UserRepository(IMongoConfigurationSettings settings) : base(settings)
 {
 }