使用Add-Migration 提示IPrincipalAccessor注入失败,需要怎么修改程序才可以呢,
还有一个疑问,执行Add-Migration的时候,究竟程序是如何执行的
相关问题
- How to add reference column migration in Rails 6 w
- How do I copy all resources to a new namespace?
- How to Insert Identity by AddOrUpdate methode in S
- Realm swift change primaryKey
- Yii2 migration problems
相关文章
- EF core 分页低版本问题
- 关于使用EF Core 提示错误:列名AccountID1无效的问题
- Defining methods in Rails migrations
- django model save - override method not invoked du
- EFCore如何保持Connection为打开状态
- SeamPhaseListener - Could not start transaction -
- Defining SubSonic 3 ActiveRecord migrations
- Sql 2008 Developer to Sql Azure Migration
检查 IPrincipalAccessor 是否确实已经注册到服务容器,有些服务微软只是写好了,但默认没有注册,你需要手动注册。
或者为 DbContext 再写一个没有 IPrincipalAccessor 参数的构造函数。
DataContext
不要通过构造函数注入IPrincipalAccessor