mvc中的菜单创建和映射 [英] Menu creation and mapping in mvc
问题描述
大家好,
我遇到NuGet插件来管理菜单'MvcSiteMapProvider MVC5'。在开始使用它之前,我有一个问题或需要更多澄清。
它在菜单映射中的效率是多少?
- 这样就很容易用XML文件创建菜单但是如何它在实际场景中有效,如进一步维护,添加和删除菜单和权限等
如果我有控制器,操作结果,用户角色,操作结果的数据库表控制器映射,动作结果和用户角色映射等,
因此,这两种机制将是实现菜单的最佳机制 ?
提前感谢您的建议。
问候,
Avinash
Hi All,
I come across the NuGet plugin to manage menu 'MvcSiteMapProvider MVC5'. I have a question or need more clarification before I start using it.
How much it will efficient it will in menu mapping?
-With this it is easy to create menu with an XML file but how it efficient in real scenario, like further maintenance, adding and removing menus and permissions etc
If I am having database tables for controller, action results, user role, action result controller mapping, action result and user role mapping etc.,
so out of this two mechanism which will be best mechanism to implement for menu?
Thank you for your suggestion in advance.
Regards,
Avinash
推荐答案
就性能而言,两者都同样有效。此外,对于来自DB的菜单内容的任何更改,您必须为这两者更改这些更改并重新创建XML或SiteMap文件。
Both works equally as far as performance is concerned. Also for any changes to the menu content coming from DB, you will have to push those changes for both and recreate the XML or SiteMap file.
这篇关于mvc中的菜单创建和映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!