Session.ExecuteQueryWithMetadata(String, Object[]) Method
Executes the specified SQL query and returns its result set along with the types and names of retrieved columns.
Namespace: DevExpress.Xpo
Assembly: DevExpress.Xpo.v24.2.dll
NuGet Package: DevExpress.Xpo
#Declaration
public SelectedData ExecuteQueryWithMetadata(
string sql,
object[] parameterValues
)
#Parameters
Name | Type | Description |
---|---|---|
sql | String | Specifies an SQL statement. |
parameter |
Object[] | An array of objects specifying parameters to pass to the database server along with the query. |
#Returns
Type | Description |
---|---|
Selected |
A Selected |
#Remarks
Use ExecuteQueryWithMetadata to query data stores for result sets. You can visualize result sets via the XPDataView. To learn how to access the resulting data, refer to How to: Access Data in SQL Query Results.
To learn more about executing SQL queries in XPO, refer to Direct SQL Queries.
Note
The Execute