October 2010
Intermediate to advanced
1920 pages
73h 55m
English
MethodExpressionThe MethodExpression class provides a means by which the developer can specify a custom LINQ query that is defined in a method. This method needs to be static and must take as its first parameter an IQueryable<T> or IEnumerable<T> object. The return value of this method can’t change the incoming parameters.
When searching for the method containing the query, the MethodExpression class first checks the class indicated by the TypeName property in the QueryExtender control. If the data source implements IDynamicDataSource, the method is searched for on the DataContext or ObjectContext object property of the data source. Finally, MethodExpression searches for the method in a template control, the base class for ...
Read now
Unlock full access