开发者

What replaced [Obsolete] MvcRoute in MvcContrib?

We're currently using MvcContrib.Routing.MvcRoute for our routes, bu开发者_开发技巧t it's marked as Obsolete in version 3.0.51.0. Was the fluent API replaced by something or just abandoned?


According to the changelog:

Deprecated MvcRoute and RegexRoute. Not maintained in nearly 2 years

Simply use the standard Route class in Mvc. Or if there is some functionality that you depend upon you could continue using it but bare in mind that the support for it has been dropped.

And here's the response from Jeremy:

The only real issue with MvcRoute is that it doesn't work with areas, which limits its usefulness. I'm not intending to remove it anytime soon, but I think MVC's built in MapRoute extension methods are probably a better choice going forward.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜