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.

Provide a way of using Audit.EntityFramework without inheritance from AuditDbContext

See original GitHub issue

Please provide a way of using Audit.EntityFramework / Audit.EntityFramework.Core without inheritance from AuditDbContext, which is not always possible or preferable.

Take a look at Z.EntityFramework.Plus as a possible example.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
thepirat000commented, Aug 15, 2018

The new version (12.2.2) includes a DefaultAuditContext class you can use to avoid inheritance. Also I’ve updated the documentation accordingly.

I think that’s the most concise way of doing it. If you have any other suggestions about this, please reply.

0reactions
Deilancommented, Aug 15, 2018

@thepirat000 What about the original request about having more seamless out-of-the-box way to use Audit.EntityFramework without inheritance? With a proper docs about it? 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to include a Custom field into Audit.EntityFramework?
I'm using Audit.EntityFramework.Core, where I implement Auditing by Using DbContextHelper,IAuditDbContext and Overriding SaveChanges() and ...
Read more >
Audit with Entity Framework Core
This is an interface, so I have to implement the fields. I know I can now inherit from IAudit and ValueEntity but if...
Read more >
Creating Simple Audit Trail With Entity Framework Core
Create an entity to table mapper configuration as need. If we are doing code first without using any table configuration class, this is...
Read more >
Audit Trail Implementation in ASP.NET Core with Entity ...
We will be creating an abstract Context class that inherits from the DBContext / IdentityDbContext of Entity Framework Core / Identity. In this ......
Read more >
How to set up auditing in Entity Framework Core
In Entity Framework, entity auditing can easily be configured by overriding the SaveChangesAsync method. The rest of this blog post will detail ...
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