Exemplo n.º 1
0
        public MongoRepository(IMongoClientWrapper wrapper)
        {
            this._client = wrapper.Value;

            this._db  = this._client.GetDatabase(wrapper.DatabaseName);
            this._set = this._db.GetCollection <T>(typeof(T).GetTableName());
        }
 public StockDataAccess(IMongoClientWrapper mongoWrapper)
 {
     _mongoWrapper = mongoWrapper;
 }
 public PortfolioDataAccess(IMongoClientWrapper mongoWrapper)
 {
     _mongoWrapper = mongoWrapper;
 }