Ejemplo n.º 1
0
 public FurnitureRepository(IAirBnbContext con) : base(con)
 {
     _furnitures = database.GetCollection <Furniture>("furnitures");
 }
Ejemplo n.º 2
0
 public AcommodationRepository(IAirBnbContext con) : base(con)
 {
     _acommodation = database.GetCollection <Acommodation>("acommodations");
     _furnitures   = database.GetCollection <Furniture>("furnitures");
 }
 public Repository(IAirBnbContext con)
 {
     client   = new MongoClient(con.ConnectionString);
     database = client.GetDatabase(con.DatabaseName);
 }