这是我的 global.asax(注册路线)
routes.MapRoute("NewDatabase",
"Server/{serverId}/Instances/{instanceId}/NewDatabase/",
new { controller = "Server", action = "NewDatabase" }
);
routes.MapRoute(
"Instance",
"Server/{id}/Instances/{instanceId}/Databases",
new { controller = "Server", action = "Databases", id = "id",instanceId="instanceId" }
);
routes.MapRoute(
"Database",
"Server/{id}/Instances",
new { controller = "Server", action = "Instances", id = "id" }
);
如果xyz.com/Server/12/Instance/1/NewDatabase
将是服务器的重用 URL,
Server/{serverId}/Instances/{instanceId}/NewDatabase/
则将是匹配模式。我如何知道与上述请求匹配的条目?
谢谢