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 阅读(2246) 评论(0) 收藏 举报
浙公网安备 33010602011771号