Symphony Framework
RunDataSelect Method
Symphony.Harmony Namespace > DataSelect Class : RunDataSelect Method
An instance of the DBConnector connector.
The select command to execute
An instance of the Symphony.Conductor.Model.DataObjectBase derived structure based data object.
{optional}A list of parameter replacement values.
This method is used to run the select command.
Syntax
[AsyncStateMachine(Symphony.Harmony.DataSelect+d__3)] 
[DebuggerStepThrough()] 
public static Task<DataSelect> RunDataSelect( 
   DBConnector connector, 
   string selectCommand, 
   DataObjectBase dataObject, 
   params object[] whereVars 
)

Parameters

connector
An instance of the DBConnector connector.
selectCommand
The select command to execute
dataObject
An instance of the Symphony.Conductor.Model.DataObjectBase derived structure based data object.
whereVars
{optional}A list of parameter replacement values.

Return Value

Remarks
The method accepts a valid DBConnector object, the required select command and the target Symphony Data Object. You can then pass any number of optional binding parameters. These binding parameteres will replace any positional arguments defined in the select command. The format of the select command is: SELECT field_name[,field_name] FROM table_name [WHERE field_name operator value [connector field_name operator value]] [ORDERBY field_name [,field_name] ASC|DESC]

This method is declared async and therefore must be awaited.

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

Reference

DataSelect Class
DataSelect Members