Sentry.EntityFramework 0.0.1-preview1

The ID prefix of this package has been reserved for one of the owners of this package by NuGet.org. 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-preview1
NuGet\Install-Package Sentry.EntityFramework -Version 0.0.1-preview1
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-preview1" />
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-preview1
#r "nuget: Sentry.EntityFramework, 0.0.1-preview1"
#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-preview1&prerelease

// Install Sentry.EntityFramework as a Cake Tool
#tool nuget:?package=Sentry.EntityFramework&version=0.0.1-preview1&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
4.4.0 288 4/12/2024
4.3.0 195 4/10/2024
4.2.1 2,863 3/12/2024
4.2.0 386 3/11/2024
4.1.2 5,822 2/20/2024
4.1.1 1,329 2/14/2024
4.1.0 3,356 2/9/2024
4.0.3 704 2/7/2024
4.0.2 194 2/6/2024
4.0.1 86 2/5/2024
4.0.0 626 2/1/2024
4.0.0-beta.9 51 1/30/2024
4.0.0-beta.8 81 1/11/2024
4.0.0-beta.7 76 1/5/2024
4.0.0-beta.6 162 12/13/2023
4.0.0-beta.5 61 12/12/2023
4.0.0-beta.4 79 12/5/2023
4.0.0-beta.3 64 12/2/2023
4.0.0-beta.2 78 11/23/2023
4.0.0-beta.1 56 11/19/2023
4.0.0-beta.0 57 11/17/2023
4.0.0-alpha.0 66 11/9/2023
3.41.4 3,440 1/23/2024
3.41.3 20,118 11/29/2023
3.41.2 955 11/23/2023
3.41.1 654 11/22/2023
3.41.0 6,098 11/8/2023
3.40.1 11,394 10/12/2023
3.40.0 1,149 10/10/2023
3.40.0-beta.0 71 9/21/2023
3.39.1 17,863 9/12/2023
3.39.0 1,250 9/7/2023
3.38.0 110 9/6/2023
3.37.0 133 9/6/2023
3.36.0 9,260 8/22/2023
3.35.1 946 8/16/2023
3.35.0 3,081 8/8/2023
3.34.0 8,914 7/13/2023
3.33.1 14,762 6/13/2023
3.33.0 11,044 5/22/2023
3.32.0 143 5/22/2023
3.31.0 12,234 5/2/2023
3.30.0 10,618 4/11/2023
3.29.1 19,285 3/11/2023
3.29.0 19,755 3/6/2023
3.28.1 11,042 2/10/2023
3.28.0 1,365 2/8/2023
3.27.1 2,271 2/3/2023
3.27.0 5,136 2/1/2023
3.26.2 16,876 1/24/2023
3.26.1 4,624 1/17/2023
3.26.0 13,252 1/13/2023
3.25.0 7,014 12/23/2022
3.24.1 8,449 12/16/2022
3.24.0 14,616 11/18/2022
3.23.1 15,679 10/31/2022
3.23.0 512 10/27/2022
3.22.0 8,456 10/7/2022
3.21.0 16,900 9/2/2022
3.20.1 13,626 7/26/2022
3.20.0 879 7/22/2022
3.19.0 8,753 6/28/2022
3.18.0 12,393 6/15/2022
3.17.1 9,055 5/8/2022
3.17.0 9,651 5/3/2022
3.16.0 14,717 4/7/2022
3.15.0 14,478 3/15/2022
3.14.1 83,053 2/18/2022
3.14.0 5,406 2/14/2022
3.13.0 16,062 1/11/2022
3.12.3 30,375 12/19/2021
3.12.2 1,136 12/15/2021
3.12.1 2,445 12/6/2021
3.12.0 6,671 11/23/2021
3.12.0-alpha.1 185 11/7/2021
3.11.1 3,539 11/5/2021
3.11.0 1,001 11/2/2021
3.10.0 11,118 10/15/2021
3.9.4 4,085 9/29/2021
3.9.3 3,546 9/21/2021
3.9.2 11,275 9/10/2021
3.9.1 397 9/9/2021
3.9.0 2,591 8/27/2021
3.8.3 9,612 7/25/2021
3.8.2 497 7/17/2021
3.8.1 332 7/15/2021
3.8.0 460 7/14/2021
3.7.0 906 7/10/2021
3.6.1 866 7/2/2021
3.6.0 955 6/23/2021
3.6.0-alpha.2 148 6/18/2021
3.6.0-alpha.1 145 6/11/2021
3.5.0 4,746 6/7/2021
3.4.0 689 5/31/2021
3.0.3 20,875 2/6/2021
2.1.6 26,249 10/23/2020
1.0.0 88,474 1/4/2019
0.0.1-preview2 4,404 7/30/2018
0.0.1-preview1 673 7/19/2018