IdentityServer4.Contrib.NHibernate
1.1.0
See the version list below for details.
dotnet add package IdentityServer4.Contrib.NHibernate --version 1.1.0
NuGet\Install-Package IdentityServer4.Contrib.NHibernate -Version 1.1.0
<PackageReference Include="IdentityServer4.Contrib.NHibernate" Version="1.1.0" />
paket add IdentityServer4.Contrib.NHibernate --version 1.1.0
#r "nuget: IdentityServer4.Contrib.NHibernate, 1.1.0"
// Install IdentityServer4.Contrib.NHibernate as a Cake Addin #addin nuget:?package=IdentityServer4.Contrib.NHibernate&version=1.1.0 // Install IdentityServer4.Contrib.NHibernate as a Cake Tool #tool nuget:?package=IdentityServer4.Contrib.NHibernate&version=1.1.0
Configuration
To configure the provider, simply add it to the IdentityServer configuration in the Startup
class' ConfigureServices()
method.
services.AddIdentityServer()
.AddDeveloperSigningCredential()
.AddNHibernateStores(
Databases.SqlServer2012()
.UsingConnectionString(Configuration["ConnectionStrings:Default"])
.EnableSqlStatementsLogging(),
cfgStore =>
{
cfgStore.DefaultSchema = "dbo";
},
opStore =>
{
opStore.DefaultSchema = "dbo";
}
)
In this example, we are configuring the NHibernate provider in order to:
- Store the configuration data in a SQL Server 2012 (or later) database, whose connection string is the one called
Default
in theappsettings.json
file - Show all the generated SQL statements in the console (
EnableSqlStatementsLogging()
). - Put all the configuration store objects and operational store objects in the
dbo
schema.
Supported Databases
Currently, the provider directly supports the following databases:
It's obviously possible to use every database supported by NHibernate.
Database Schema Creation
In the package's Scripts folder you will find the schema creation scripts for every supported database. You can use these scripts to create the database objects in the database you're going to use. Before executing, remember to modify them accordingly to your database schema.
Product | Versions 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- AutoMapper (>= 8.0.0)
- IdentityServer4 (>= 2.3.2)
- IdentityServer4.Storage (>= 2.3.1)
- NETStandard.Library (>= 2.0.3)
- NHibernate (>= 5.2.0)
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 |
---|---|---|
3.1.0 | 2,646 | 3/14/2022 |
3.0.4 | 1,621 | 9/6/2021 |
3.0.3 | 1,783 | 6/13/2021 |
3.0.2 | 560 | 9/29/2020 |
3.0.1 | 525 | 9/3/2020 |
3.0.0 | 843 | 7/30/2020 |
2.1.4 | 397 | 9/6/2021 |
2.1.3 | 413 | 6/14/2021 |
2.1.2 | 553 | 9/29/2020 |
2.1.1 | 525 | 9/14/2020 |
2.1.0 | 613 | 5/17/2020 |
2.0.4 | 414 | 9/6/2021 |
2.0.3 | 450 | 6/14/2021 |
2.0.2 | 539 | 9/29/2020 |
2.0.1 | 555 | 9/14/2020 |
2.0.0 | 633 | 11/30/2019 |
1.1.8 | 392 | 9/6/2021 |
1.1.7 | 425 | 6/14/2021 |
1.1.6 | 542 | 9/29/2020 |
1.1.5 | 512 | 9/14/2020 |
1.1.4 | 698 | 6/6/2020 |
1.1.2 | 569 | 11/17/2019 |
1.1.1 | 562 | 9/22/2019 |
1.1.0 | 616 | 7/8/2019 |
1.1.0-beta.1 | 321 | 2/15/2019 |