Closed Bojanema closed 6 years ago
Can't you use string instead?
You know, I am sorry, this works as intended. I missed one of your instructions.
services.AddIdentity<DapperIdentityUser<Guid>, DapperIdentityRole<Guid>>()
.AddDapperIdentityFor<T, Guid>();
I didn't add Guid on the last call. Please close/trash this.
@grandchamp Since this is still open, just wanted to ask you a side question. Where do you bind your SignInManager? Is it in Transient or Scoped? I believe there is a bug with this, but can't find this info to confirm.
What happens is I logout in a method and return the page to the user, however, the SignInManager injected in the view still thinks the user is loged in. If I refresh the page then it shows logged out in the view. I really think its something to do with how its bound, Scope vs Transient.
I'm using scoped. I'll take a look on how MS Identity registers things.
You can take a look on https://github.com/grandchamp/Identity.Dapper/blob/master/src/Identity.Dapper/Extensions/ServiceCollectionExtensions.cs AddStores
Hi,
I tried setting up my project to use GUID instead of int on User and Role tables, however, I encounter the following error:
I followed your instructions by adding the following to Startup.cs
services.AddIdentity<DapperIdentityUser<Guid>, DapperIdentityRole<Guid>>