Метод | Описание | |
---|---|---|
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. |
Метод | Описание | |
---|---|---|
SqlExpression ( ) : System |
public static Constant ( |
||
val | SqlConstant instance | |
Результат |
public static Constant ( SqlDataType dataType, object val ) : |
||
dataType | SqlDataType | Value's data type |
val | object | The value |
Результат |
public static Date ( System.DateTime val ) : |
||
val | System.DateTime | Value of the expression |
Результат |
public static Field ( |
||
fieldName | ||
Результат |
public static Field ( |
||
firstPart | ||
secondPart | ||
table | ||
Результат |
public static Field ( |
||
fieldName | ||
table | ||
Результат |
public static Field ( string fieldName ) : |
||
fieldName | string | Name of a field |
Результат |
public static Field ( string fieldName, |
||
fieldName | string | Name of a field |
table | The table this field belongs to | |
Результат |
public static Function ( SqlAggregationFunction func, |
||
func | SqlAggregationFunction | Aggregation function to be applied on the supplied expression |
param | Parameter of the aggregation function | |
Результат |
public static IfNull ( |
||
test | Expression to be checked for being NULL | |
val | Substitution | |
Результат |
public static LikeExpressionParameter ( ) : |
||
Результат |
public static LikeExpressionParameter ( |
||
paramName | ||
Результат |
public static LikeExpressionParameter ( string paramName ) : |
||
paramName | string | |
Результат |
public static Number ( double val ) : |
||
val | double | Value of the expression |
Результат |
public static Number ( int val ) : |
||
val | int | Value of the expression |
Результат |
public static Parameter ( ) : |
||
Результат |
public static Parameter ( string paramName ) : |
||
paramName | string | |
Результат |
public static PseudoField ( string fieldName ) : |
||
fieldName | string | |
Результат |
public static Raw ( string sql ) : |
||
sql | string | |
Результат |
public static String ( string val ) : |
||
val | string | Value of the expression |
Результат |
public static SubQuery ( |
||
query | A SelectQuery object | |
Результат |
public static SubQuery ( string queryText ) : |
||
queryText | string | Text of the subquery. |
Результат |