Click or drag to resize

GenericExpressionHandlerCoerceToType Method

Coerces the linq expression to the targettype.

Namespace:  SD.LLBLGen.Pro.QuerySpec
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.5.0.0 (5.5.18.1019)
Syntax
public static Expression CoerceToType(
	Expression toCoerce,
	Type targetType
)

Parameters

toCoerce
Type: System.Linq.ExpressionsExpression
To coerce.
targetType
Type: SystemType
Type of the target.

Return Value

Type: Expression
toCoerce if toCoerce's type is equal to targetType, otherwise it's wrapped in a Convert
See Also