Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit e54877c

Browse files
committed
Update DbScripts.cs
1 parent 801f4b6 commit e54877c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/ServiceStack.OrmLite/DbScripts.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,10 @@ public ColumnSchema[] dbColumns(ScriptScopeContext scope, string tableName, obje
198198
private string padCondition(string text) => string.IsNullOrEmpty(text) ? "" : " " + text;
199199
}
200200

201-
public partial class DbScriptsAsync
201+
public partial class DbScriptsAsync
202202
{
203-
private static DbScripts Sync = new DbScripts();
203+
private DbScripts sync;
204+
private DbScripts Sync => sync ??= new DbScripts { Context = Context, Pages = Pages };
204205

205206
public object dbSelectSync(ScriptScopeContext scope, string sql) => Sync.dbSelect(scope, sql);
206207

0 commit comments

Comments
 (0)