CurrentUnitOfWorkProvider is null in AbpDBContext.IsHardDeleteEntity
See original GitHub issueAbp package version: 4.0.0
When entity check for delete in Seed methods CurrentUnitOfWorkProvider in AbpDBContext.IsHardDeleteEntity is null and throw exception “Object reference not set to an instance of an object”
protected virtual bool IsHardDeleteEntity(DbEntityEntry entry) { if (CurrentUnitOfWorkProvider.Current?.Items == null) { return false; } ....... }
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
No results found
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I checked with latest version, the problem is gone
hi @Omital
Can you reproduce the problem if you use the latest template project?
https://aspnetboilerplate.com/Templates