Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make id property type configurable #20

Open
erdtsieck opened this issue Mar 9, 2020 · 4 comments
Open

Make id property type configurable #20

erdtsieck opened this issue Mar 9, 2020 · 4 comments

Comments

@erdtsieck
Copy link

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.

@beginor
Copy link
Member

beginor commented Mar 9, 2020

Thanks, I will see if this can be done with nhibernate when I have time.

@MohamedElbasuony1
Copy link

Any updates !!

@beginor
Copy link
Member

beginor commented Jun 2, 2021

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?

@alexmurari
Copy link

alexmurari commented Jan 24, 2022

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants