Click or drag to resize

QueryFactoryCoreFromSqlT Method

Creates a new DynamicQuery which wraps the specified SQL query and projects it to instances of type T.

Namespace:  SD.LLBLGen.Pro.QuerySpec
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.11.0.0 (5.11.23.1114)
Syntax
public DynamicQuery<T> FromSql<T>(
	string sqlQuery,
	Object parameterValues,
	string alias
)

Parameters

sqlQuery
Type: SystemString
The SQL query to execute. Has to follow one of the parameter specification patterns for Plain SQL queries in the LLBLGen Pro Runtime Framework
parameterValues
Type: SystemObject
The object which will provide the parameter values for the SQL query specified. Has to follow one of the parameter specification patterns for Plain SQL queries in the LLBLGen Pro Runtime Framework
alias
Type: SystemString
The alias to use for the plain sql query. If null or empty, an artificial alias will be assigned

Type Parameters

T
The type of the instances to project the rows into, returned by the SQL query specified

Return Value

Type: DynamicQueryT
See Also