You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The NuGets contain a static copy of all data. This data is embedded as resources inside the assembly. No network calls are done by the assembly. To get the latests version of the data do a NuGet update. There are several options to help keep a NuGet update:
Dependabot: creates pull requests to keep dependencies secure and up-to-date.
Libraries.io supports subscribing to NuGet package updates.
Usage
// All country info. This is only the country metadata// and not all locationData.varallCountryInfo=CountryLoader.CountryInfo;varcostaRicaInfo=allCountryInfo.Single(_ =>_.Iso=="CR");// Loads all location data for a specific countryvaraustraliaData=CountryLoader.LoadAustraliaLocationData();varname=australiaData.Name;varstate=australiaData.States[0];varprovince=state.Provinces[0];varcommunity=province.Communities[0];varplace=community.Places[0];varpostCode=place.PostCode;varplaceName=place.Name;varlatitude=place.Location.Latitude;varlongitude=place.Location.Longitude;
varfaker=newFaker<Target>().RuleFor(property: u =>u.RandomCountryName,setter:(f,u)=>f.Country().Name()).RuleFor(property: u =>u.AustralianCapital,setter:(f,u)=>CountryDataSet.Australia().Capital).RuleFor(property: u =>u.RandomIrelandState,setter:(f,u)=>CountryDataSet.Ireland().State().Name).RuleFor(property: u =>u.RandomIcelandPostCode,setter:(f,u)=>CountryDataSet.Iceland().PostCode());vartargetInstance=faker.Generate();