Click or drag to resize

DbDatabaseRunQuery Method (DbConnection, String, String, IDataParameter, String, String)

Runs a query, returning a DataSet that contains the results of the query in a named table.

Namespace:  Cadcorp.DataAccess
Assembly:  Cadcorp.GFB.DataAccess (in Cadcorp.GFB.DataAccess.dll) Version: 9.0.2618.0 (9.0.2618.0)
Syntax
protected DataSet RunQuery(
	DbConnection connection,
	string connectionString,
	string query,
	IDataParameter[] parameters,
	string tableName,
	string provider
)

Parameters

connection
Type: System.Data.CommonDbConnection

[Missing <param name="connection"/> documentation for "M:Cadcorp.DataAccess.DbDatabase.RunQuery(System.Data.Common.DbConnection,System.String,System.String,System.Data.IDataParameter[],System.String,System.String)"]

connectionString
Type: SystemString
String defining the database connection
query
Type: SystemString

[Missing <param name="query"/> documentation for "M:Cadcorp.DataAccess.DbDatabase.RunQuery(System.Data.Common.DbConnection,System.String,System.String,System.Data.IDataParameter[],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 returned DataSet
provider
Type: SystemString

[Missing <param name="provider"/> documentation for "M:Cadcorp.DataAccess.DbDatabase.RunQuery(System.Data.Common.DbConnection,System.String,System.String,System.Data.IDataParameter[],System.String,System.String)"]

Return Value

Type: DataSet
A newly instantiated DataSet object

Return Value

Type: DataSet
See Also