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.
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.
paket add Sentry.EntityFramework --version 0.0.1-preview2                
#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.
// Install Sentry.EntityFramework as a Cake Addin
#addin nuget:?package=Sentry.EntityFramework&version=0.0.1-preview2&prerelease

// Install Sentry.EntityFramework as a Cake Tool
#tool nuget:?package=Sentry.EntityFramework&version=0.0.1-preview2&prerelease                

Entity Framework 6 Integration for Sentry

This is packages extend Sentry's .NET SDK with Entity Framework 6 queries as Breadcrumbs. It also processes DbEntityValidationExceptions to extract the validation errors and add to the Extra field. This increases the debuggability of Entity Framework related errors gratefully.

Example in Sentry

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, use SentryOptions.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 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.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Sentry.EntityFramework:

Repository Stars
getsentry/examples
Collection of all different kinds of Sentry SDKs and integrations
Version Downloads Last updated
5.0.0 447 12/19/2024
5.0.0-alpha.1 49 11/25/2024
5.0.0-alpha.0 40 11/24/2024
4.13.0 10,978 11/5/2024
4.12.2 588 11/2/2024
4.12.1 10,276 10/10/2024
4.12.1-segv1 78 11/1/2024
4.12.0 62,098 10/2/2024
4.11.0 4,461 9/22/2024
4.10.2 18,536 8/21/2024
4.10.1 2,142 8/16/2024
4.10.0 1,508 8/14/2024
4.9.0 26,020 7/11/2024
4.9.0-sync.collection.2 42 7/30/2024
4.9.0-sync.collection.1 46 7/30/2024
4.8.1 9,808 7/2/2024
4.8.0 2,697 6/26/2024
4.7.0 15,864 5/27/2024
4.6.2 26,653 5/14/2024
4.6.1 125 5/14/2024
4.6.0 3,757 5/9/2024
4.5.0 3,196 4/30/2024
4.4.0 11,168 4/12/2024
4.3.0 365 4/10/2024
4.2.1 7,977 3/12/2024
4.2.0 440 3/11/2024
4.1.2 13,499 2/20/2024
4.1.1 2,681 2/14/2024
4.1.0 16,226 2/9/2024
4.0.3 879 2/7/2024
4.0.2 236 2/6/2024
4.0.1 122 2/5/2024
4.0.0 1,548 2/1/2024
4.0.0-beta.9 70 1/30/2024
4.0.0-beta.8 99 1/11/2024
4.0.0-beta.7 90 1/5/2024
4.0.0-beta.6 178 12/13/2023
4.0.0-beta.5 77 12/12/2023
4.0.0-beta.4 95 12/5/2023
4.0.0-beta.3 82 12/2/2023
4.0.0-beta.2 102 11/23/2023
4.0.0-beta.1 74 11/19/2023
4.0.0-beta.0 75 11/17/2023
4.0.0-alpha.0 83 11/9/2023
3.41.4 8,860 1/23/2024
3.41.3 38,421 11/29/2023
3.41.2 1,437 11/23/2023
3.41.1 1,126 11/22/2023
3.41.0 6,946 11/8/2023
3.40.1 16,553 10/12/2023
3.40.0 1,565 10/10/2023
3.40.0-beta.0 93 9/21/2023
3.39.1 28,921 9/12/2023
3.39.0 1,920 9/7/2023
3.38.0 141 9/6/2023
3.37.0 165 9/6/2023
3.36.0 15,951 8/22/2023
3.35.1 1,592 8/16/2023
3.35.0 3,320 8/8/2023
3.34.0 14,418 7/13/2023
3.33.1 17,129 6/13/2023
3.33.0 16,335 5/22/2023
3.32.0 175 5/22/2023
3.31.0 13,112 5/2/2023
3.30.0 11,305 4/11/2023
3.29.1 21,127 3/11/2023
3.29.0 23,045 3/6/2023
3.28.1 11,322 2/10/2023
3.28.0 1,395 2/8/2023
3.27.1 5,610 2/3/2023
3.27.0 5,205 2/1/2023
3.26.2 18,804 1/24/2023
3.26.1 4,792 1/17/2023
3.26.0 18,108 1/13/2023
3.25.0 10,367 12/23/2022
3.24.1 8,879 12/16/2022
3.24.0 16,343 11/18/2022
3.23.1 15,854 10/31/2022
3.23.0 549 10/27/2022
3.22.0 10,262 10/7/2022
3.21.0 19,346 9/2/2022
3.20.1 14,920 7/26/2022
3.20.0 942 7/22/2022
3.19.0 8,930 6/28/2022
3.18.0 14,436 6/15/2022
3.17.1 11,268 5/8/2022
3.17.0 10,149 5/3/2022
3.16.0 16,445 4/7/2022
3.15.0 16,637 3/15/2022
3.14.1 84,343 2/18/2022
3.14.0 5,485 2/14/2022
3.13.0 16,419 1/11/2022
3.12.3 36,103 12/19/2021
3.12.2 1,168 12/15/2021
3.12.1 2,486 12/6/2021
3.12.0 6,715 11/23/2021
3.12.0-alpha.1 207 11/7/2021
3.11.1 4,195 11/5/2021
3.11.0 1,146 11/2/2021
3.10.0 12,196 10/15/2021
3.9.4 5,120 9/29/2021
3.9.3 3,599 9/21/2021
3.9.2 11,328 9/10/2021
3.9.1 431 9/9/2021
3.9.0 2,637 8/27/2021
3.8.3 11,753 7/25/2021
3.8.2 532 7/17/2021
3.8.1 367 7/15/2021
3.8.0 493 7/14/2021
3.7.0 945 7/10/2021
3.6.1 932 7/2/2021
3.6.0 1,030 6/23/2021
3.6.0-alpha.2 167 6/18/2021
3.6.0-alpha.1 162 6/11/2021
3.5.0 5,284 6/7/2021
3.4.0 888 5/31/2021
3.0.3 21,956 2/6/2021
2.1.6 37,435 10/23/2020
1.0.0 98,973 1/4/2019
0.0.1-preview2 5,217 7/30/2018
0.0.1-preview1 700 7/19/2018