Click or drag to resize

ISpecificationVisitorTCreateLikeExpression Method

Creates a LIKE-expression using the specified field and search pattern.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework.Specifications (in Enkoni.Framework.Specifications.dll) Version: 1.3.0.1
Syntax
Expression<Func<T, bool>> CreateLikeExpression(
	Expression<Func<T, string>> field,
	string pattern
)

Parameters

field
Type: System.Linq.ExpressionsExpressionFuncT, String
The field of type T that must match the pattern.
pattern
Type: SystemString
The pattern to which the field must apply. The pattern may contain a '*' and '?' wildcard.

Return Value

Type: ExpressionFuncT, Boolean
The created expression.
See Also