Developer

Function Imports

Function imports provide custom functionality, and are not tied to any collection. Prior knowledge of the return type of the function import is useful.

var resourcePath = “GetProductsByRating?rating=5”;
var execution = Store.ScheduleFunction(resourcePath);
var response = (await execution.Response) as IODataResponseSingle; 
if (response != null)
{
    if (response.PayloadType == ODataType.EntitySet)
    {
        this.EntitySet = (IODataEntitySet)((IODataResponseSingle)response).Payload;
    }
}