You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was wondering whether aggregation was supported for methods that return EdmEntityObjectCollection (i.e. with type parameter Contact). I see that in all the examples, the controller methods return IQueryable but I'm not sure if that would work if the method expects IEdmEntityObjects rather than aspecific contact object. Currently I am running into an exception where I cannot find a property defined in the Contact entityType.
"error":{
"code":"","message":"The query specified in the URI is not valid. Could not find a property named 'Date' on type 'System.Web.OData.IEdmEntityObject'.
}
The text was updated successfully, but these errors were encountered:
doing a normal "get all" query with the url "~/Api/MyType" returns the data fine and displays the datetime properties correctly as ISO strings as I would expect.
I was wondering whether aggregation was supported for methods that return EdmEntityObjectCollection (i.e. with type parameter Contact). I see that in all the examples, the controller methods return IQueryable but I'm not sure if that would work if the method expects IEdmEntityObjects rather than aspecific contact object. Currently I am running into an exception where I cannot find a property defined in the Contact entityType.
Assemblies affected
Microsoft.AspNet.OData 5.9.1
Microsoft.OData.Core 6.15
Microsoft.OData.Edm 6.15
Reproduce steps
GET /data/Contacts?$apply=aggregate(Date with min as Earliest)
Expected result
{
@odata.context":"http://hostname/data/$metadata#Contacts,
"value": [
{
"@odata.id": null,
"Earliest": Datetime Object
}
]
}
Actual result
"error":{
"code":"","message":"The query specified in the URI is not valid. Could not find a property named 'Date' on type 'System.Web.OData.IEdmEntityObject'.
}
The text was updated successfully, but these errors were encountered: