LinqConnect Documentation
Devart.Data.Linq Namespace / DataContext Class / ExecuteCommand Method
The SQL command to be executed.
The array of parameters to be passed to the command. Note the following behavior:

In This Topic
    ExecuteCommand Method
    In This Topic
    Executes SQL commands directly on the database.
    Syntax
    'Declaration
     
    Public Function ExecuteCommand( _
       ByVal command As String, _
       ByVal ParamArray parameters() As Object _
    ) As Integer
    public int ExecuteCommand( 
       string command,
       params object[] parameters
    )

    Parameters

    command
    The SQL command to be executed.
    parameters
    The array of parameters to be passed to the command. Note the following behavior:
    • If the number of objects in the array is less than the highest number identified in the command string, an exception is thrown.
    • If the array contains objects that are not referenced in the command string, no exception is thrown.
    • If any one of the parameters is null, it is converted to DBNull.Value.

    Return Value

    An int representing the number of rows modified by the executed command.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also