Click or drag to resize

QueryExpressionParserBuildLinqExpression Method (Type, NameValueCollection, String, DictionaryString, FuncObject, Boolean, Boolean, Boolean, Boolean)

Build expression for specified type

Namespace:  SanteDB.Core.Model.Query
Assembly:  SanteDB.Core.Model (in SanteDB.Core.Model.dll) Version: 3.0.481-alpha
Syntax
public static LambdaExpression BuildLinqExpression(
	Type modelType,
	NameValueCollection httpQueryParameters,
	string parameterName,
	Dictionary<string, Func<Object>> variables = null,
	bool safeNullable = true,
	bool forceLoad = false,
	bool lazyExpandVariables = true,
	bool relayControlVariables = false
)

Parameters

modelType
Type: SystemType
The type of model to which the returned LINQ expression should accept as a parameter
httpQueryParameters
Type: System.Collections.SpecializedNameValueCollection
The HTTP query parameter collection to parse into a LINQ expression
parameterName
Type: SystemString
The name of the parameter in the Lambda expression
variables (Optional)
Type: System.Collections.GenericDictionaryString, FuncObject
The variable evaluators to use when expanding $variable expressions in the HDSI path
safeNullable (Optional)
Type: SystemBoolean
When true, use coalesce operators in the Lambda expression to provide a default value. This is useful if the LINQ expression will be used on memory objects
forceLoad (Optional)
Type: SystemBoolean
When true, use the LoadProperty(IAnnotatedResource, String, Boolean) on all calls to load values on the path. This is useful if the resulting Linq expression is intended to be executed in memory
lazyExpandVariables (Optional)
Type: SystemBoolean
When true, all variables in variables should be called in the LINQ expression, when false the variables are evaluated when the expression is created
relayControlVariables (Optional)
Type: SystemBoolean
When true, the WithControl(Object, String, Object) extension method should be used to convey the control variables

Return Value

Type: LambdaExpression

[Missing <returns> documentation for "M:SanteDB.Core.Model.Query.QueryExpressionParser.BuildLinqExpression(System.Type,System.Collections.Specialized.NameValueCollection,System.String,System.Collections.Generic.Dictionary{System.String,System.Func{System.Object}},System.Boolean,System.Boolean,System.Boolean,System.Boolean)"]

See Also