You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"Npgsql is not fully compatible with TransactionScope yet, only connections without Enlist = true are accepted.");
114
+
115
+
if(!options.EnableTransactionScopeEnlistment)
116
+
{
117
+
if(connectionStringBuilder.Enlist)
118
+
thrownewArgumentException(
119
+
$"TransactionScope enlistment must be enabled by setting {nameof(PostgreSqlStorageOptions)}.{nameof(options.EnableTransactionScopeEnlistment)} to `true`.");
120
+
}
117
121
118
122
_existingConnection=existingConnection;
119
123
_options=options;
@@ -127,7 +131,7 @@ public PostgreSqlStorage(NpgsqlConnection existingConnection)
"Npgsql is not fully compatible with TransactionScope yet, only connections without Enlist = true are accepted.");
134
+
$"TransactionScope enlistment must be enabled by setting {nameof(PostgreSqlStorageOptions)}.{nameof(PostgreSqlStorageOptions.EnableTransactionScopeEnlistment)} to `true`.");
131
135
132
136
_existingConnection=existingConnection;
133
137
_options=newPostgreSqlStorageOptions();
@@ -189,10 +193,11 @@ public override string ToString()
0 commit comments