Click or drag to resize

SpecificationLikeT Method

Creates a specification that will return the objects for which the specified field matches the specified pattern. The pattern supports two types of wildcards. The '*' wildcard matches any character (zero or more times) and the '?' wildcard matches exactly one character.

Namespace:  Enkoni.Framework
Assembly:  Enkoni.Framework.Specifications (in Enkoni.Framework.Specifications.dll) Version: 1.3.0.1
Syntax
public static ISpecification<T> Like<T>(
	Expression<Func<T, string>> field,
	string pattern
)

Parameters

field
Type: System.Linq.ExpressionsExpressionFuncT, String
The field that must match the expression.
pattern
Type: SystemString
The search-pattern.

Type Parameters

T
The type of object that is ultimately selected by the specification.

Return Value

Type: ISpecificationT
A specification that will return only the objects for which the field matches the search-pattern.
See Also