As of right now, every time the user calls EntitySetController.QueryOptions we create a new instance of ODataQueryOptions<T>.
This causes some problems when the user calls it several times and makes changes on one of the instances as the customer expects the same instance to be returned every time he calls EntitySetController.QueryOptions.
Comments: Also, use the EdmModel and the information on the request to figure out the right type to use to create the ODataQueryOptions instead of using the generic type on the EntitySetController.
This causes some problems when the user calls it several times and makes changes on one of the instances as the customer expects the same instance to be returned every time he calls EntitySetController.QueryOptions.
Comments: Also, use the EdmModel and the information on the request to figure out the right type to use to create the ODataQueryOptions instead of using the generic type on the EntitySetController.