CountryRegion 1.1.0

dotnet add package CountryRegion --version 1.1.0                
NuGet\Install-Package CountryRegion -Version 1.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CountryRegion" Version="1.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CountryRegion --version 1.1.0                
#r "nuget: CountryRegion, 1.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install CountryRegion as a Cake Addin
#addin nuget:?package=CountryRegion&version=1.1.0

// Install CountryRegion as a Cake Tool
#tool nuget:?package=CountryRegion&version=1.1.0                

CountryRegion A cascading dropdown for loading countries and associated states and local governments.

CountryRegion

A cascading dropdown for loading countries and associated states and local governments.

Badges

MIT License

stable release version: version

Nuget package downloads: downloads

Tech Stack

C#, .Net6.0, .NetStandard2.1,

How Do I Get Started

First, install NuGet. Then, install CountryRegion from the package manager console:

   NuGet\Install-Package CountryRegion -Version 1.0.10

This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.

Or from the .NET CLI as:

   dotnet add package CountryRegion --version 1.0.10

Finally, import into the file:

   using CountryRegion;

Features

  • Get all countries
  • Get all states
  • Get all local governments
  • Get a country
  • Get a state
  • Get a local government

Sample usage

   await Region.Countries();
  • Output
Type
Task<IEnumerable<Response?>>

   await Region.GetStates(countryId);
  • Input
Parameter Type Description
countryId int Required. The id of the country to get the states associated with it
  • Output
Type
Task<IEnumerable<Response?>>

   await Region.GetLGAs(countryId, stateId);
  • Input
Parameters Type Description
countryId, int Required. The id of the country to get the local governments from
stateId int Required. The id of the state to get the local governments from
  • Output
Type
Task<IEnumerable<Response?>>

   await Region.GetCountry(countryId);
  • Input
Parameter Type Description
countryId int Required. The id of the country to get
  • Output
Type
Task<Response?>

   await Region.GetState(countryId, stateId);
  • Input
Parameters Type Description
countryId, int Required. The id of the country to get a state from
stateId int Required. The id of the state to get
  • Output
Type
Task<Response?>

   await Region.GetLGA(stateId, lgaId);
  • Input
Parameters Type Description
stateId int Required. The id of the state to get local government from
lgaId int? Required. The name of the local government in that state
  • Output
Type
Task<Response?>

Thanks to all Contributors

Maintainers:

Contributing

Contributions are always welcome!

See contributing.md for ways to get started.

Please adhere to this project's code of conduct.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.0 6,048 5/9/2023
1.0.9 899 3/12/2023
1.0.8 1,556 10/16/2022
1.0.7 468 9/23/2022
1.0.6 429 9/16/2022
1.0.5 788 8/19/2022
1.0.4 396 8/17/2022
1.0.3 427 7/20/2022
1.0.2 424 7/15/2022
1.0.1 502 7/13/2022
1.0.0 437 7/13/2022