コード例 #1
0
        public AbstractMongoRepository(IMongoSettingsModel settings)
        {
            Client = new MongoClient(settings.ConnectionString);
            var database = Client.GetDatabase(settings.DatabaseName);

            _mongoCollection = database.GetCollection <TEntity>(settings.CollectionName);
        }
コード例 #2
0
 public NotificationsRepository(IMongoSettingsModel settings) : base(settings)
 {
 }
コード例 #3
0
 public ProfilesRepository(IMongoSettingsModel settings) : base(settings)
 {
 }