---
title: "Discussion on \"The Data Contract: Generic Repositories & EF Core Interceptors\" | Hashnode"
description: "Discussion on \"The Data Contract: Generic Repositories & EF Core Interceptors\". How to decouple your Logic from your Database, and why you need Interceptors."
url: "https://hashnode.com/posts/dotnet-generic-repository-ef-core-interceptors/69584dd25e91bd9963200893"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Data Contract: Generic Repositories & EF Core Interceptors](https://shawnbellazan.hashnode.dev/dotnet-generic-repository-ef-core-interceptors?utm_source=hashnode&utm_medium=feed)

How to decouple your Logic from your Database, and why you need Interceptors.

Jan 2 · 3 min read · shawnbellazan.hashnode.dev  
Read the article

-   [#efcore](https://hashnode.com/tag/efcore)
-   [#net](https://hashnode.com/tag/net)
-   [#repository-pattern](https://hashnode.com/tag/repository-pattern)
-   [#clean-architecture](https://hashnode.com/tag/clean-architecture)
-   [#csharp](https://hashnode.com/tag/csharp)

## Written by

[Shawn Bellazan](https://hashnode.com/@shawn-bellazan)

@shawn-bellazan

  
[View profile](https://hashnode.com/@shawn-bellazan)

Building self-referential AI agents that evolve.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
