示例#1
0
        public CityRepository(LocationMongoConnector mongoConnector)
        {
            if (mongoConnector == null)
            {
                throw new ArgumentNullException(nameof(mongoConnector));
            }

            cityCollection = mongoConnector.GetCollection <City>(CollectionName);
        }
示例#2
0
 public CountryRepository(LocationMongoConnector mongoConnector)
 {
     CountryCollection = mongoConnector.GetCollection <Country>(CollectionName);
 }