Click or drag to resize

LinqUtilsCoerceToSet Method

Coerces the passed in linq expression to setexpression. If the passed in expression is a parameter, it will convert it to a setreference expression otherwise it will try to cast it to a setexpression. If this can't be done, in the situation where tocoerce isn't a setexpression, null is returned.

Namespace:  SD.LLBLGen.Pro.LinqSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.4.0.0 (5.4.0)
Syntax
public static SetExpression CoerceToSet(
	Expression toCoerce,
	MappingTracker trackedMappings,
	bool throwOnFailure
)

Parameters

toCoerce
Type: System.Linq.ExpressionsExpression
To coerce.
trackedMappings
Type: SD.LLBLGen.Pro.LinqSupportClassesMappingTracker
The tracked mappings.
throwOnFailure
Type: SystemBoolean
if set to true, it will throw an exception

Return Value

Type: SetExpression
See Also