LinqToFetchXml See the tests for examples. It can be used with custom models or using the class Entity from SDK. Nuget Package: https://www.nuget.org/packages/LinqToFetchXml/