Property IsInTransaction
Whether any transaction is active — explicit (CurrentTransaction) or ambient (TransactionScope).
Use this instead of checking CurrentTransaction directly.
EF Core pattern: checks both CurrentTransaction and Transaction.Current.
bool IsInTransaction { get; }