NPredicateBuilder Updated to 5.3

NPB Gets a Glow-Up

NPredicateBuilder now has its own identity. The construction sign was chosen to highlight NPB's ability to "construct" queries on the fly from smaller pieces. Much like a building is created out of many blocks, your queries and orders are created from multiple single statements.

New Language Version Support

NPB now supports the following dotnet versions:

Base Library: Standard 2.0 & 2.1, NET 5-8

EF Library: NET 480, 3.1, 5, 6, 7, 8

It's time to ReadMe

The documentation has moved from the wiki to the ReadMe page when you land on the repository main page. (The wiki still exists if you like.)

Navigation Property Support

Did you know?

NPredicateBuilder EF queries work for navigation properties as well.

        public class MyQueries : BaseQuery<MyEntity>
            public MyQueries UseNavigationProperty()
                AddAndCriteria(x => x.NavigationProperty.All(y => y.Value == something));

                return this;

As long as your navigation joins return a boolean value, they will integrate with NPB seamlessly.

Free Samples

An updated set of samples is available here.

Continued Purpose

The purpose of NPB continues to be the easiest and simplest way to test, construct, and maintain LINQ queries. You can break down your Where and Order statements into singular entities-creating reusable nuggets that may be tested independently, but used together.