I can't figure out what this code does.
public override string SelectController(ODataPath odataPath, HttpRequestMessage request)
{
return odataPath != null &&
odataPath.PathTemplate.StartsWith("~/entityset",
StringComparison.OrdinalIgnoreCase) ? "A" : null;
}
I know the syntactic meaning, but what does StartsWith("~/entityset"
do ?
The problem is ~/entityset
. I have no reference of what this entity set is and where is it taken from. I guess it could represent some entity set , which one ?
Is it some default OData mechanish to check URLs?