DbDatabaseRunQuery Method (String, String, IDataParameter, String, String, String) |
Runs a query, returning a DataView that contains the results of the query in
a named table within a DataSet.
Namespace:
Cadcorp.DataAccess
Assembly:
Cadcorp.GFB.DataAccess (in Cadcorp.GFB.DataAccess.dll) Version: 9.0.2618.0 (9.0.2618.0)
Syntaxprotected DataView RunQuery(
string connectionString,
string query,
IDataParameter[] parameters,
string tableName,
string sortOrder,
string provider
)
Protected Function RunQuery (
connectionString As String,
query As String,
parameters As IDataParameter(),
tableName As String,
sortOrder As String,
provider As String
) As DataView
Parameters
- connectionString
- Type: SystemString
String defining the database connection - query
- Type: SystemString
[Missing <param name="query"/> documentation for "M:Cadcorp.DataAccess.DbDatabase.RunQuery(System.String,System.String,System.Data.IDataParameter[],System.String,System.String,System.String)"]
- parameters
- Type: System.DataIDataParameter
Array of IDataParameter objects containing parameters to the query - tableName
- Type: SystemString
Name to use for the table in the DataSet - sortOrder
- Type: SystemString
Default sort order for the DataView - provider
- Type: SystemString
[Missing <param name="provider"/> documentation for "M:Cadcorp.DataAccess.DbDatabase.RunQuery(System.String,System.String,System.Data.IDataParameter[],System.String,System.String,System.String)"]
Return Value
Type:
DataViewA newly instantiated DataView object
Return Value
Type:
DataView
See Also