[Queryable(AllowedFunctionNames=AllowedFunctionNames.AllFunctionNames)]
IQueryable<Customer> Get()
{
..
}
This will throw exception saying that AllFunctionNames is not a valid enum value. Here is the bug. in ODataValidationSettings.AllowedFunctionNames property setter, we should check against AllowedFuctionNames.AllFunctionNames, not the AllowedFunctionnames.All ( which is indeed the All function ).
IQueryable<Customer> Get()
{
..
}
This will throw exception saying that AllFunctionNames is not a valid enum value. Here is the bug. in ODataValidationSettings.AllowedFunctionNames property setter, we should check against AllowedFuctionNames.AllFunctionNames, not the AllowedFunctionnames.All ( which is indeed the All function ).