TrackerEnabledDbContext 3.5.19-beta

Use this to extend Entity Framework functionality to store changes in database. This is very useful for auditing purpose. It stores WHO changed WHAT and WHEN. It will let you choose which tables and columns you want to track with the help of attributes.

NOTE: TO USE WITH ASP.NET MVC 5 IDENTITY, USE : TrackerEnabledDbContext.Identity

Click here to get started :

This is a prerelease version of TrackerEnabledDbContext.
There is a newer version of this package available.
See the version list below for details.
Install-Package TrackerEnabledDbContext -Version 3.5.19-beta
dotnet add package TrackerEnabledDbContext --version 3.5.19-beta
<PackageReference Include="TrackerEnabledDbContext" Version="3.5.19-beta" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add TrackerEnabledDbContext --version 3.5.19-beta
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Release Notes

v 3.5.15-beta
Added integration with Serilog. An ILogger can now be provided to ITrackerContext. If you decide you ILogger for logging audit logs, you can take advantage of any Serilog sinks, such as MongoDb. ElasticSearch, Seq, etc.

v 3.5.2
Users can now use the event to make changes to log & ENTITY before the log gets saved. This can be useful for scenarios when you have fields like - LastModified or LastModifiedBy.

v 3.5.1
Fixed MySQL compatibility issues

v 3.5
Added an event when log is generated and before it is saved to local database. This event can be used to save log to external datastore instead of local.

Added Softdeletable feature
Bug fixes

Added Support for Disconnected contexts (for n-tier applications)
Bug Fixes
Minor Improvements

- configure tracking without annotation with the help of FLUENT API
- enable/disable tracking at runtime
- various bug fixes
- performance improvements
- ability to migrate legacy log data

- even if you dont provide a username/userId (anonymous user) , entity will be audited.
- no need to add the [Key] attribute. It's optional now.
- fixed the bug where changes din't get audited when "db.Entry(update).State = EntityState.Modified" was used
- added async support
- added support for composite primary keys
- improved performance
- Performance & Reliability Improvements
- Bug Fixes
- Added GetLogs<>()  method
- Bug Fixes
- Performance Improvements

NuGet packages (2)

Showing the top 2 NuGet packages that depend on TrackerEnabledDbContext:

Package Downloads
AutoClutch.AutoRepo is a simple generic repository for Entity Framework 6 that can be used to save you coding time when creating a data layer.
Internal use only.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version History

Version Downloads Last updated
3.8.3 4,698 2/16/2020
3.7.0 24,712 12/30/2018
3.6.2-beta 3,359 2/9/2017
3.6.1 70,145 6/26/2016
3.6.0 4,094 5/22/2016
3.5.20-beta 397 5/21/2016
3.5.19-beta 605 3/11/2016
3.5.15-beta 614 3/10/2016
3.5.2 18,971 1/25/2016
3.5.1 3,867 1/13/2016
3.5.0 11,832 11/22/2015
3.4.5 8,689 11/9/2015
3.4.0 572 11/4/2015
3.3.13 628 10/30/2015
3.3.12 2,711 10/29/2015
3.1.0 1,044 10/15/2015
3.0.0-beta 651 10/7/2015
2.7.0 5,789 3/26/2015
2.6.0 2,398 11/27/2014
2.5.0 2,159 11/1/2014
2.0.0 1,112 3/24/2014
1.1.0 744 11/30/2013
1.0.0 821 9/27/2013
Show less