InvalidOperationException: Cannot create a DbSet for 'IdentityUserClaim' bec

An unhandled exception occurred while processing the request.

InvalidOperationException: Cannot create a DbSet for 'IdentityUserClaim<string>' because this type is not included in the model for the context.

Microsoft.EntityFrameworkCore.Internal.InternalDbSet<TEntity>.get_EntityType()

 

解决方法,Context继承identitycontext,不要自己实现集合,让他自动创建

上一篇:python pip安装模块报错 "Can't connect to HTTPS URL because the SSL module is not available."


下一篇:com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Cannot load connection class b