Sentry.EntityFramework
0.0.1-preview2
Prefix Reserved
This is a prerelease version of Sentry.EntityFramework.
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet add package Sentry.EntityFramework --version 0.0.1-preview2
NuGet\Install-Package Sentry.EntityFramework -Version 0.0.1-preview2
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Sentry.EntityFramework" Version="0.0.1-preview2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sentry.EntityFramework" Version="0.0.1-preview2" />
<PackageReference Include="Sentry.EntityFramework" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Sentry.EntityFramework --version 0.0.1-preview2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sentry.EntityFramework, 0.0.1-preview2"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Sentry.EntityFramework@0.0.1-preview2
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Sentry.EntityFramework&version=0.0.1-preview2&prerelease
#tool nuget:?package=Sentry.EntityFramework&version=0.0.1-preview2&prerelease
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Entity Framework 6 Integration for Sentry
This is packages extend Sentry's .NET SDK with Entity Framework 6 queries as Breadcrumbs.
It also processes DbEntityValidationException
s to extract the validation errors and add to the Extra field.
This increases the debuggability of Entity Framework related errors gratefully.
Usage
There are 2 steps to adding Entity Framework 6 support to your project:
- Call
SentryDatabaseLogging.UseBreadcrumbs()
to either your application's startup method, or into a static constructor inside your Entity Framework object. Make sure you only call this method once! This will add the interceptor to Entity Framework to log database queries. - When setting up your
SentryClient
, useSentryOptions.AddEntityFramework()
. This extension method will register all error processors to extract extra data, such as validation errors, from the exceptions thrown by Entity Framework.
Samples
You can see it in action with a sample using ASP.NET MVC 5
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net462 is compatible. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.6.2
- EntityFramework (>= 6.0.0)
- Sentry (>= 0.0.1-preview4)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last Updated |
---|---|---|
6.0.0-preview.1-prerelease | 114 | 10/6/2025 |
5.16.0 | 908 | 10/1/2025 |
5.15.1 | 1,438 | 9/20/2025 |
5.15.1-maxpath.1 | 250 | 9/18/2025 |
5.15.0 | 1,294 | 9/11/2025 |
5.14.1 | 16,689 | 8/14/2025 |
5.14.0 | 992 | 8/8/2025 |
5.14.0-alpha.1 | 200 | 8/6/2025 |
5.14.0-alpha.0 | 203 | 8/5/2025 |
5.13.0 | 1,437 | 7/28/2025 |
5.12.0 | 12,638 | 7/15/2025 |
5.12.0-alpha.0 | 63 | 7/11/2025 |
5.11.2 | 54,366 | 6/25/2025 |
5.11.1 | 1,090 | 6/21/2025 |
5.11.0 | 841 | 6/19/2025 |
5.11.0-alpha.3 | 191 | 6/13/2025 |
5.11.0-alpha.1 | 119 | 6/7/2025 |
5.10.0 | 2,681 | 6/6/2025 |
5.9.0 | 3,465 | 5/30/2025 |
5.8.2-beta.1 | 148 | 5/29/2025 |
5.8.1 | 1,460 | 5/27/2025 |
5.8.0 | 5,167 | 5/21/2025 |
5.8.0-alpha.0 | 147 | 5/22/2025 |
5.7.0 | 6,545 | 5/13/2025 |
5.7.0-beta.0 | 77 | 5/2/2025 |
5.6.0 | 4,542 | 4/24/2025 |
5.5.1 | 4,468 | 4/8/2025 |
5.5.0 | 3,025 | 4/2/2025 |
5.4.0 | 7,420 | 3/15/2025 |
5.3.0 | 2,514 | 3/7/2025 |
5.2.0 | 2,693 | 2/26/2025 |
5.1.1 | 86,149 | 2/13/2025 |
5.1.0 | 4,745 | 2/3/2025 |
5.0.1 | 24,018 | 1/8/2025 |
5.0.0 | 5,907 | 12/19/2024 |
5.0.0-alpha.1 | 86 | 11/25/2024 |
5.0.0-alpha.0 | 90 | 11/24/2024 |
4.13.0 | 44,342 | 11/5/2024 |
4.12.2 | 953 | 11/2/2024 |
4.12.1 | 31,747 | 10/10/2024 |
4.12.1-segv1 | 138 | 11/1/2024 |
4.12.0 | 125,994 | 10/2/2024 |
4.11.0 | 8,783 | 9/22/2024 |
4.10.2 | 34,952 | 8/21/2024 |
4.10.1 | 3,898 | 8/16/2024 |
4.10.0 | 2,375 | 8/14/2024 |
4.9.0 | 41,419 | 7/11/2024 |
4.9.0-sync.collection.2 | 82 | 7/30/2024 |
4.9.0-sync.collection.1 | 80 | 7/30/2024 |
4.8.1 | 19,612 | 7/2/2024 |
4.8.0 | 10,523 | 6/26/2024 |
4.7.0 | 18,572 | 5/27/2024 |
4.6.2 | 64,139 | 5/14/2024 |
4.6.1 | 261 | 5/14/2024 |
4.6.0 | 5,693 | 5/9/2024 |
4.5.0 | 3,905 | 4/30/2024 |
4.4.0 | 16,332 | 4/12/2024 |
4.3.0 | 526 | 4/10/2024 |
4.2.1 | 12,012 | 3/12/2024 |
4.2.0 | 593 | 3/11/2024 |
4.1.2 | 14,251 | 2/20/2024 |
4.1.1 | 3,063 | 2/14/2024 |
4.1.0 | 16,759 | 2/9/2024 |
4.0.3 | 1,101 | 2/7/2024 |
4.0.2 | 375 | 2/6/2024 |
4.0.1 | 251 | 2/5/2024 |
4.0.0 | 2,554 | 2/1/2024 |
4.0.0-beta.9 | 102 | 1/30/2024 |
4.0.0-beta.8 | 140 | 1/11/2024 |
4.0.0-beta.7 | 108 | 1/5/2024 |
4.0.0-beta.6 | 205 | 12/13/2023 |
4.0.0-beta.5 | 112 | 12/12/2023 |
4.0.0-beta.4 | 132 | 12/5/2023 |
4.0.0-beta.3 | 110 | 12/2/2023 |
4.0.0-beta.2 | 141 | 11/23/2023 |
4.0.0-beta.1 | 105 | 11/19/2023 |
4.0.0-beta.0 | 114 | 11/17/2023 |
4.0.0-alpha.0 | 121 | 11/9/2023 |
3.41.4 | 13,873 | 1/23/2024 |
3.41.3 | 52,256 | 11/29/2023 |
3.41.2 | 1,648 | 11/23/2023 |
3.41.1 | 1,212 | 11/22/2023 |
3.41.0 | 7,644 | 11/8/2023 |
3.40.1 | 19,842 | 10/12/2023 |
3.40.0 | 1,901 | 10/10/2023 |
3.40.0-beta.0 | 128 | 9/21/2023 |
3.39.1 | 34,303 | 9/12/2023 |
3.39.0 | 2,436 | 9/7/2023 |
3.38.0 | 237 | 9/6/2023 |
3.37.0 | 278 | 9/6/2023 |
3.36.0 | 24,026 | 8/22/2023 |
3.35.1 | 2,169 | 8/16/2023 |
3.35.0 | 3,521 | 8/8/2023 |
3.34.0 | 26,512 | 7/13/2023 |
3.33.1 | 17,485 | 6/13/2023 |
3.33.0 | 21,823 | 5/22/2023 |
3.32.0 | 307 | 5/22/2023 |
3.31.0 | 13,774 | 5/2/2023 |
3.30.0 | 12,301 | 4/11/2023 |
3.29.1 | 21,788 | 3/11/2023 |
3.29.0 | 26,859 | 3/6/2023 |
3.28.1 | 11,615 | 2/10/2023 |
3.28.0 | 1,538 | 2/8/2023 |
3.27.1 | 9,549 | 2/3/2023 |
3.27.0 | 5,505 | 2/1/2023 |
3.26.2 | 20,399 | 1/24/2023 |
3.26.1 | 4,964 | 1/17/2023 |
3.26.0 | 18,239 | 1/13/2023 |
3.25.0 | 13,057 | 12/23/2022 |
3.24.1 | 9,825 | 12/16/2022 |
3.24.0 | 17,277 | 11/18/2022 |
3.23.1 | 16,123 | 10/31/2022 |
3.23.0 | 691 | 10/27/2022 |
3.22.0 | 14,443 | 10/7/2022 |
3.21.0 | 20,178 | 9/2/2022 |
3.20.1 | 15,899 | 7/26/2022 |
3.20.0 | 1,077 | 7/22/2022 |
3.19.0 | 9,323 | 6/28/2022 |
3.18.0 | 16,507 | 6/15/2022 |
3.17.1 | 11,974 | 5/8/2022 |
3.17.0 | 10,538 | 5/3/2022 |
3.16.0 | 18,046 | 4/7/2022 |
3.15.0 | 18,269 | 3/15/2022 |
3.14.1 | 89,056 | 2/18/2022 |
3.14.0 | 5,633 | 2/14/2022 |
3.13.0 | 16,935 | 1/11/2022 |
3.12.3 | 44,090 | 12/19/2021 |
3.12.2 | 1,281 | 12/15/2021 |
3.12.1 | 2,614 | 12/6/2021 |
3.12.0 | 6,861 | 11/23/2021 |
3.12.0-alpha.1 | 305 | 11/7/2021 |
3.11.1 | 4,702 | 11/5/2021 |
3.11.0 | 1,442 | 11/2/2021 |
3.10.0 | 13,148 | 10/15/2021 |
3.9.4 | 6,159 | 9/29/2021 |
3.9.3 | 4,118 | 9/21/2021 |
3.9.2 | 11,538 | 9/10/2021 |
3.9.1 | 542 | 9/9/2021 |
3.9.0 | 2,766 | 8/27/2021 |
3.8.3 | 14,794 | 7/25/2021 |
3.8.2 | 646 | 7/17/2021 |
3.8.1 | 491 | 7/15/2021 |
3.8.0 | 642 | 7/14/2021 |
3.7.0 | 1,080 | 7/10/2021 |
3.6.1 | 1,081 | 7/2/2021 |
3.6.0 | 1,178 | 6/23/2021 |
3.6.0-alpha.2 | 265 | 6/18/2021 |
3.6.0-alpha.1 | 252 | 6/11/2021 |
3.5.0 | 5,700 | 6/7/2021 |
3.4.0 | 1,257 | 5/31/2021 |
3.0.3 | 23,803 | 2/6/2021 |
2.1.6 | 44,387 | 10/23/2020 |
1.0.0 | 110,198 | 1/4/2019 |
0.0.1-preview2 | 5,883 | 7/30/2018 |
0.0.1-preview1 | 951 | 7/19/2018 |
Can be found at: https://github.com/getsentry/sentry-dotnet-ef/releases