Method | Description | |
---|---|---|
Constant ( |
Creates a SqlExpression which represents a constant typed value.
|
|
Constant ( SqlDataType dataType, object val ) : |
Creates a SqlExpression which represents a constant typed value
|
|
Date ( System.DateTime val ) : |
Creates a SqlExpression which represents a date value.
|
|
Field ( |
||
Field ( |
||
Field ( |
||
Field ( string fieldName ) : |
Creates a SqlExpression which represents a field in a database table.
|
|
Field ( string fieldName, |
Creates a SqlExpression which represents a field in a database table.
|
|
Function ( SqlAggregationFunction func, |
Creates a SqlExpression with an aggergation function
|
|
IfNull ( |
Creates a SqlExpression with IfNull function. Works as SQL Server's ISNULL() function. |
|
LikeExpressionParameter ( ) : |
||
LikeExpressionParameter ( |
||
LikeExpressionParameter ( string paramName ) : |
||
Null ( ) : |
Creates a SqlExpression representing a NULL value
|
|
Number ( double val ) : |
Creates a SqlExpression which represents a numeric value.
|
|
Number ( int val ) : |
Creates a SqlExpression which represents a numeric value.
|
|
Parameter ( ) : |
||
Parameter ( string paramName ) : |
Correct parameter name depends on your specifc data provider. OLEDB expects all parameters to be '?' and matches parameters to values based on their index. SQL Server Native driver matches parameters by names and expects to find "@paramName" parameter placeholder in the query. | |
PseudoField ( string fieldName ) : |
||
Raw ( string sql ) : |
Creates a SqlExpression with raw SQL
|
|
String ( string val ) : |
Creates a SqlExpression which represents a textual value.
|
|
SubQuery ( |
Creates a SqlExpression which represents a subquery.
|
|
SubQuery ( string queryText ) : |
Creates a SqlExpression which represents a subquery. In many cases you can use an inner or outer JOIN instead of a subquery. If you prefer using subqueries it is recomended that you construct the subquery using another instance of SelectQuery, render it using the correct renderer and pass the resulting SQL statement to the queryText parameter. |
Method | Description | |
---|---|---|
SqlExpression ( ) : System |
public static Constant ( |
||
val | SqlConstant instance | |
return |
public static Constant ( SqlDataType dataType, object val ) : |
||
dataType | SqlDataType | Value's data type |
val | object | The value |
return |
public static Date ( System.DateTime val ) : |
||
val | System.DateTime | Value of the expression |
return |
public static Field ( |
||
fieldName | ||
return |
public static Field ( |
||
firstPart | ||
secondPart | ||
table | ||
return |
public static Field ( |
||
fieldName | ||
table | ||
return |
public static Field ( string fieldName ) : |
||
fieldName | string | Name of a field |
return |
public static Field ( string fieldName, |
||
fieldName | string | Name of a field |
table | The table this field belongs to | |
return |
public static Function ( SqlAggregationFunction func, |
||
func | SqlAggregationFunction | Aggregation function to be applied on the supplied expression |
param | Parameter of the aggregation function | |
return |
public static IfNull ( |
||
test | Expression to be checked for being NULL | |
val | Substitution | |
return |
public static LikeExpressionParameter ( ) : |
||
return |
public static LikeExpressionParameter ( |
||
paramName | ||
return |
public static LikeExpressionParameter ( string paramName ) : |
||
paramName | string | |
return |
public static Number ( double val ) : |
||
val | double | Value of the expression |
return |
public static Number ( int val ) : |
||
val | int | Value of the expression |
return |
public static Parameter ( string paramName ) : |
||
paramName | string | |
return |
public static PseudoField ( string fieldName ) : |
||
fieldName | string | |
return |
public static Raw ( string sql ) : |
||
sql | string | |
return |
public static String ( string val ) : |
||
val | string | Value of the expression |
return |
public static SubQuery ( |
||
query | A SelectQuery object | |
return |
public static SubQuery ( string queryText ) : |
||
queryText | string | Text of the subquery. |
return |