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
{{ message }}
Repository navigation
Aggregate Statement on Collection of IEdmEntityObjects cant find property #918
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'.
}
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.
Activity
TehWardy commentedon Apr 4, 2017
I have a similar problem when I use groupby with a DateTime property in the same version assemblies ...
~/Api/MyType?$apply=groupby((DueDate))With the DueDate property on the type being a DateTime it returns ...
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.
TehWardy commentedon Apr 4, 2017
Ah looks like my problem is #912
Could be related though I guess ???