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.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 2127 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.