Skip to content

Commit e6c4fc5

Browse files
committed
- using GuardedDatabaseContext
1 parent 13c968b commit e6c4fc5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Shuttle.Core.Data/DatabaseGateway.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ private static IDatabaseContext GuardedDatabaseContext()
8787

8888
public int ExecuteUsing(IQuery query)
8989
{
90-
using (var command = DatabaseContext.Current.CreateCommandToExecute(query))
90+
using (var command = GuardedDatabaseContext().CreateCommandToExecute(query))
9191
{
9292
if (Log.IsTraceEnabled)
9393
{
@@ -100,7 +100,7 @@ public int ExecuteUsing(IQuery query)
100100

101101
public T GetScalarUsing<T>(IQuery query)
102102
{
103-
using (var command = DatabaseContext.Current.CreateCommandToExecute(query))
103+
using (var command = GuardedDatabaseContext().CreateCommandToExecute(query))
104104
{
105105
if (Log.IsTraceEnabled)
106106
{

0 commit comments

Comments
 (0)