You are expected to be in the controller designer. The controller has not yet been initialized with the actual request. Try the following:
protected string EntityName
{
get { Request.GetRouteData().Values["controller"] as string; }
}
This should be available after starting the constructor and when you are in the subclass method.
source
share