ASP.NET core EF6 identity

I am using EF6 as ORM to create a new project in ASP.NET Core-pay attention to EF Core.

I am trying to configure Identity Store Encountered a problem.

This is what I have so far:

Startup.cs

services.AddIdentity ()
.AddEntityFrameworkStores()
.AddDefaultTokenProviders();

This line gives me a headache. AddEntityFrameworkStores is for EF Core, not for the completeness of EF 6 Version.

How to reference the basic data storage of EF6

Thank you

You seem to have overridden the default data type of ApplicationUser and IdentityRole Id.

Try AddEntityFrameworkStores() or the with type you have overridden.

< /div>

I am using EF6 as ORM to create a new project in ASP.NET Core-pay attention to EF Core.

I encountered To the question.

This is what I have so far:

Startup.cs

services.AddIdentity( )
.AddEntityFrameworkStores()
.AddDefaultTokenProviders();

This line gives me a headache. AddEntityFrameworkS tores applies to EF Core, not to the full version of EF 6.

How to reference the basic data storage of EF6

Thank you

< /p>

You seem to have overridden the default data type of ApplicationUser and IdentityRole Id.

Try AddEntityFrameworkStores() or the with type that you have overridden.

Leave a Comment

Your email address will not be published.