NHibernate.AspNetCore.Identity
NHibernate.AspNetCore.Identity copied to clipboard
Make id property type configurable
At the moment types like NHibernate.AspNetCore.Identity.IdentityRole
cannot have an id column other than string. It would be great if we could choose this type for ourselves.
Thanks, I will see if this can be done with nhibernate when I have time.
Any updates !!
To make id property type configurable, it looks needs a lots of overrides, and you must provide mapping for all the types like IdentityRole
IdentityRoleClaim
IdentityUser
IdentityUserClaim
IdentityUserLogin
IdentityUserRole
IdentityUserToken
, do you realy want to do this?
Or any good ideas?
@erdtsieck @beginor @MohamedElbasuony1 @knuxbbs @stringit-mcagno @mylemans i've created a ASP.NET Core identity provider for NHibernate with support for FluentNHibernate and custom id properties. It's simple and highly flexible.
Check it out: https://github.com/alexmurari/FluentNHibernate.AspNetCore.Identity NuGet package: https://www.nuget.org/packages/Fluent.NHibernate.AspNetCore.Identity
If it proves to be useful, I would like to transfer ownership to the NHibernate organization.