RESTier OData Function returning EntitySet. “The related entity set could not be found from the OData path”
问题 Added a function on RESTier OData var ambilLocationsByMarketId = new EdmAction(ns, "AmbilLocationsByMarketId", location.GetEdmTypeReference(true), false, null); model.AddElement(ambilLocationsByMarketId); var entityContainer = (EdmEntityContainer)model.EntityContainer; entityContainer.AddActionImport("AmbilLocationsByMarketId", ambilLocationsByMarketId); Implemented the custom function in my DomainController [HttpGet] [EnableQuery] [ODataRoute("AmbilLocationsByMarketId")] public