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

Commit 1353dfb

Browse files
committed
Add sqlCast
1 parent 4aa61bf commit 1353dfb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/ServiceStack.OrmLite/DbScripts.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ public ColumnSchema[] dbColumns(ScriptScopeContext scope, string tableName, obje
198198
public string sqlCurrency(ScriptScopeContext scope, string fieldOrValue, string symbol) =>
199199
dialect(scope, d => d.SqlCurrency(fieldOrValue, symbol));
200200

201+
public string sqlCast(ScriptScopeContext scope, object fieldOrValue, string castAs) =>
202+
dialect(scope, d => d.SqlCast(fieldOrValue, castAs));
201203
public string sqlBool(ScriptScopeContext scope, bool value) => dialect(scope, d => d.SqlBool(value));
202204
public string sqlTrue(ScriptScopeContext scope) => dialect(scope, d => d.SqlBool(true));
203205
public string sqlFalse(ScriptScopeContext scope) => dialect(scope, d => d.SqlBool(false));

src/ServiceStack.OrmLite/DbScriptsAsync.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ public Task<object> dbColumns(ScriptScopeContext scope, string tableName, object
199199
public string sqlCurrency(ScriptScopeContext scope, string fieldOrValue, string symbol) =>
200200
dialect(scope, d => d.SqlCurrency(fieldOrValue, symbol));
201201

202+
public string sqlCast(ScriptScopeContext scope, object fieldOrValue, string castAs) =>
203+
dialect(scope, d => d.SqlCast(fieldOrValue, castAs));
202204
public string sqlBool(ScriptScopeContext scope, bool value) => dialect(scope, d => d.SqlBool(value));
203205
public string sqlTrue(ScriptScopeContext scope) => dialect(scope, d => d.SqlBool(true));
204206
public string sqlFalse(ScriptScopeContext scope) => dialect(scope, d => d.SqlBool(false));

0 commit comments

Comments
 (0)