OData.QueryBuilder
OData.QueryBuilder copied to clipboard
OData.QueryBuilder - library for creating complex OData queries (OData version 4.01) based on data models with linq syntax.
```csharp class Test { public string Name { get; set; } public string Description { get; set; } public int Value { get; set; } } ``` ```csharp var query1...
Consider the following: You want to get top X items which have an expand with at least one value matching condition Y. For the expand you also only want to...
As far as I can tell this should work exactly the same as $filter when using the list endpoint
Hi, my OData service doesn't support In statement and I need to make code like that: ``` var emails = new[] {"[email protected]", "[email protected]"} var builder = ODataQueryBuilder(baseUrl).For(nameof(MyEntity)).ByList() for(email in emails)...
fixes ZEXSM/OData.QueryBuilder#123 Possible breaking: Changed the All and Any methods to take Expression instead of Func. As far as I can tell this does not impact anything since explicitly passing...
Basically copied the implementation of Filter from ODataQueryCollection (and a couple of the tests) If you prefer some other solution like moving it to the baseclass or extracting a shared...
Hi team, I would like to be able to generate OData like that: ```MyEntity?$filter=Type eq MyCompany.DataEntities.AdressType'Email' ``` For my OData Cast doesn't work. Thanks
I want to do a search for ``` public class Item { public string Name { get; set; } = String.Empty; public string Description { get; set; } = String.Empty;...
Let's say you have an enum called Status and an entity with 2 properties. One property is of type Status, and the other is of type nullable Status. ```CS public...