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.

Typo in docs regarding adding Audit.EntityFramework without inheritance?

See original GitHub issue

https://github.com/thepirat000/Audit.NET/tree/master/src/Audit.EntityFramework#without-inheritance

There’s the following code

public class MyContext : DbContext
{
    private static DbContextHelper _helper = new DbContextHelper();
    private readonly IAuditDbContext _auditContext;

I believe that static shall not be there, since in AuditIdentityDbContext it’s not static. And personally I had issues with Audit.NET EFCore in multi-threading environments with DbContextHelper being defined as static.

Am I wrong, or is it really a typo in a Readme?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Shaddixcommented, Sep 6, 2021

Thanks, it works! I also agree that having a MatchTransaction configuration option would significantly simplify things 😃

Thanks for your efforts put in the library and extremely quick responses!

1reaction
Shaddixcommented, Sep 5, 2021

I could prepare a minimal repro, yep

Read more comments on GitHub >

github_iconTop Results From Across the Web

What's New in EF Core 6.0
This allows historical data to be queried, such as for auditing, or restored, such as for recovery after accidental mutation or deletion. EF...
Read more >
Is it possible with Audit.EntityFramework to ignore inserts ...
I want to use Audit.EntityFramework with EntityFramework Core but ignore inserts in audit logs only for some entities. I cannot find any info ......
Read more >
EF Core Database Migrations - ABP Documentation
It defines a [ConnectionStringName] attribute which tells ABP to always use the Default connection string for this Dbcontext . It inherits from the...
Read more >
Dixin's Blog - EntityFramework.Functions: Code First ...
Functions library implements Entity Framework code first support for: Stored procedures, with: single result type multiple result types …
Read more >
Entity Base Class
There is no need for a single base entity class when you work with multiple projects or bounded contexts. Each domain has its...
Read more >

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