Skip to content
Deedboxlatest

DBX012: DbContexts do not share one connection

This page explains error DBX012 and how to fix it.

UseDbContext got contexts on different DbConnection instances, so they cannot share a transaction.

Create every context with the same DbConnection.