question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CurrentUnitOfWorkProvider is null in AbpDBContext.IsHardDeleteEntity

See original GitHub issue

Abp 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
Omitalcommented, Mar 17, 2020

I checked with latest version, the problem is gone

0reactions
malimingcommented, Mar 17, 2020

hi @Omital

Can you reproduce the problem if you use the latest template project?

https://aspnetboilerplate.com/Templates

Read more comments on GitHub >

github_iconTop Results From Across the Web

No results found

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found