nickkin-msft
nickkin-msft
Part of the change which was committed to fix Issue #427... ``` 458 458 IList actualEntityTypes = 459 - StructuralTypes.Except(misconfiguredEntityTypes).OfType().ToList(); 459 + StructuralTypes.OfType() 460 + .Where(entity...
You can use the same repro zip I sent WRT https://github.com/OData/WebApi/issues/575 to repro this as well. Simply comment out lines 46 and 47 in WebApiConfig.cs: ``` // somehow the builder...
Example query: http://localhost/odata/MyEntitySet?$top=1 Example controller: ``` [EnableQuery] public async TaskGet() { /* (set up DocumentDB client) */ var queryable = Client.CreateDocumentQuery("dbs/" + Database.Id + "/colls/" + Collection.Id); return queryable; }...
We are returning an IEnumerator (via the implementation of IQueryable), which does properly implement "yield return" and thus lazy enumeration to OData: WebApi: > ``` > [EnableQuery( > EnsureStableOrdering =...
Create a class "MyDto" with a property for example "public DateTimeOffset TestProp { get; set; }" Create a second class "MyDerivedDto : MyDto" with a property for example "public new...
====== Update: See comments below, root cause is that OData.WebApi is putting a SelectExpandBinder into the expression tree and I need a way to disable this so it applies a...
Once OData has applied the URI $filter, etc. options to the returned IQueryable and calls (probably implicitly) IEnumerator ExecuteQuery(Expression expression), if the returned IEnumerator throws an exception, the entire IIS...
======EDIT======: I was in fact calling .Count() afterward in the first example, however it is still generating an invalid URI ending with "Collection/$count?$top=1" which is not a valid OData URI,...
When querying for a property being one of several possible values, if you create a long "or" conditional like so: odataClient.MyCollection.Where(x => x.prop == "val1" || x.prop == "val2") this...
Any .Contains() in a .Where() clause, could easily be decomposed by the OData client's IQueryable expression tree visitor into a list of "ORed" conditionals, even if .Contains() is not strictly...