 | OrmExtensionsExecute Method |
Execute a command that does not return a value.
Namespace: SanteDB.OrmLiteAssembly: SanteDB.OrmLite (in SanteDB.OrmLite.dll) Version: 3.0.2081-alpha+d0a78774d3f97b9193d2ae2fef6d129ea9f29519
Syntaxpublic static void Execute(
this IDbConnection me,
string sql,
params Object[] parameters
)
<ExtensionAttribute>
Public Shared Sub Execute (
me As IDbConnection,
sql As String,
ParamArray parameters As Object()
)
public:
[ExtensionAttribute]
static void Execute(
IDbConnection^ me,
String^ sql,
... array<Object^>^ parameters
)
[<ExtensionAttribute>]
static member Execute :
me : IDbConnection *
sql : string *
parameters : Object[] -> unit Parameters
- me IDbConnection
- The connection to execute the command on.
- sql String
- The statement to run in the command.
- parameters Object
- Parameters for the statement that will be inserted into the statement.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IDbConnection. 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