| IQueryFilterExtensionCompose Method |
Construct the expression from the parameters on the query string
Namespace:
SanteDB.Core.Model.Query
Assembly:
SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax BinaryExpression Compose(
Expression scope,
ExpressionType comparison,
Expression valueExpression,
Expression[] parms
)
Function Compose (
scope As Expression,
comparison As ExpressionType,
valueExpression As Expression,
parms As Expression()
) As BinaryExpression
BinaryExpression^ Compose(
Expression^ scope,
ExpressionType comparison,
Expression^ valueExpression,
array<Expression^>^ parms
)
abstract Compose :
scope : Expression *
comparison : ExpressionType *
valueExpression : Expression *
parms : Expression[] -> BinaryExpression
Parameters
- scope
- Type: System.Linq.ExpressionsExpression
The scope of the current property - comparison
- Type: System.Linq.ExpressionsExpressionType
The type of comparison to be made - valueExpression
- Type: System.Linq.ExpressionsExpression
The operand - parms
- Type: System.Linq.ExpressionsExpression
The parameters on the query string
Return Value
Type:
BinaryExpression[Missing <returns> documentation for "M:SanteDB.Core.Model.Query.IQueryFilterExtension.Compose(System.Linq.Expressions.Expression,System.Linq.Expressions.ExpressionType,System.Linq.Expressions.Expression,System.Linq.Expressions.Expression[])"]
Remarks
Basically this will take seomthing like
dateOfBirth=:(diff|<=3w)2018-01-01
and
turn it into
o.DateOfBirth.Diff("2018-01-01", "w") <= 3
See Also