InvalidOperationException: Cannot create a DbSet for 'IdentityUserClaim<string>' because this type is not included in the model for the context.
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,不要自己实现集合,让他自动创建
posted on 2020-02-05 18:44 topguntopgun 阅读(2125) 评论(0) 编辑 收藏 举报