IdeaBlade.Linq Assembly > IdeaBlade.Linq Namespace > PredicateBuilder Class : False<T> Method |
'Declaration
Public Shared Function False(Of T)() As Expression(Of Func(Of T,Boolean))
'Usage
Dim value As Expression(Of Func(Of T,Boolean)) value = PredicateBuilder.False(Of T)()
public static Expression<Func<T,bool>> False<T>()
var mgr = new DomainModelEntityManager(); var predicate = PredicateBuilder.False<Product>(); foreach (string category in new string[] { "Meat", "Dairy", "Grains" }) { string temp = category; predicate = predicate.Or(p => p.Category.Name.StartsWith(temp)); } var query = mgr.Products.Where(predicate); var list = query.ToList();
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2