How To Create Dynamic Menu In MVC 4.0?
Even i checked below link.. what type of Table structure i should create in Sql Server.
http://www.dotnetcurry.com/ShowArticle.aspx?ID=811
http://www.dotnetcurry.com/ShowArticle.aspx?ID=811
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Jaganathan BantheswaranPosted Jan 20, 2014, 6:29 AM
If you want to follow DB-first approach then create a table called Menu & MenuItem with the columns as mentioned in Menu & MenuItem models [classes] in that post.
Or it can be simply,
MenuID MenuName MenuLocation ParentID
1 ParentItem1 NULL 0
2 ParentItem2 NULL 0
3 ParentItem3 NULL 0
11 SubMenuItem1NULL 1
12 SubMenuItem2NULL 1
21 SubMenuItem3NULL 2
Add fields which you want.....