Ejemplo n.º 1
0
        public AbstractMongoRepository(IMongoSettingsModel settings)
        {
            Client = new MongoClient(settings.ConnectionString);
            var database = Client.GetDatabase(settings.DatabaseName);

            _mongoCollection = database.GetCollection <TEntity>(settings.CollectionName);
        }
Ejemplo n.º 2
0
 public NotificationsRepository(IMongoSettingsModel settings) : base(settings)
 {
 }
 public ProfilesRepository(IMongoSettingsModel settings) : base(settings)
 {
 }