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,不要自己实现集合,让他自动创建

相关文章:

  • 2022-01-13
  • 2022-01-06
  • 2022-03-03
  • 2022-12-23
  • 2021-04-12
  • 2021-07-01
  • 2021-10-05
  • 2022-12-23
猜你喜欢
  • 2021-12-23
  • 2022-02-19
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案