ConnectionExtensionsApplySql Method (IAsyncConnection, Command, Boolean) |
Get the result of executing the specified SQL query
Namespace: Innovator.ClientAssembly: Innovator.Client (in Innovator.Client.dll) Version: 2016.1.15.1759 (2016.01.15.1759)
Syntax public static IPromise<IReadOnlyResult> ApplySql(
this IAsyncConnection conn,
Command sql,
bool async
)
<ExtensionAttribute>
Public Shared Function ApplySql (
conn As IAsyncConnection,
sql As Command,
async As Boolean
) As IPromise(Of IReadOnlyResult)
Parameters
- conn
- Type: Innovator.ClientIAsyncConnection
Connection to execute the query on - sql
- Type: Innovator.ClientCommand
SQL query to be performed. If parameters are specified, they will be substituted into the query - async
- Type: SystemBoolean
Whether to perform the query asynchronously
Return Value
Type:
IPromiseIReadOnlyResultA read-only result
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IAsyncConnection. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
See Also