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
SyntaxExpression<Func<T, bool>> CreateLikeExpression(
Expression<Func<T, string>> field,
string pattern
)
Function CreateLikeExpression (
field As Expression(Of Func(Of T, String)),
pattern As String
) As Expression(Of Func(Of T, Boolean))
Expression<Func<T, bool>^>^ CreateLikeExpression(
Expression<Func<T, String^>^>^ field,
String^ pattern
)
abstract CreateLikeExpression :
field : Expression<Func<'T, string>> *
pattern : string -> Expression<Func<'T, bool>>
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,
BooleanThe created expression.
See Also