General Discussion Board - Please post questions, answers, (polite) opinions, and use-cases. Moderators reserve the right to amend the text/subject line or re-categorise the post to better suit the forum configuration if necessary.
Dont want the security tables in MVC menu
04/12/2017
|
migrator Administrator Posts: 63
|
hi, I just generated an MVC test app just to see what came out, something very simple targeting an MSSQL db with only two tables. The generations was successful but when I try to build I get this errors. about 180 error related to Identity roles and such things. I need a hint on how to go about it. Thanks.
>> Hello
Have you specified a 'schema name' in the CodeTrigger data source tab? If you do, it will only generate code relating to that schema. If this is the case, either enter 'security' as the schema name to build only the missing security pieces, or leave the schema name field blank to have the option of building everything >>
Thank you. I had 'dbo' as the schema and that's why security did not generate. Now it does fine. However, I do not want the security tables to show on the menu when it generates. How do I make them not visible but still generate the needed code to compile successfully?Thanks edited by migrator on 12/4/2017
|
|
0
link
|
04/12/2017
|
migrator Administrator Posts: 63
|
Hi,Thanks for letting me know it resolved the issue.The items on the menu are defined in the menuitems.xml file in the root of the mvc project. If you edit that file and remove the links to the security tables, the menu items will not show up at runtime.In addition, once the security tables have been generated, you can switch your schema name back to 'dbo', if you are not planning any schema changes to the security tables
|
|
0
link
|
04/12/2017
|
migrator Administrator Posts: 63
|
Thank you, you have been very helpful and I'm really liking this generator.
|
|
0
link
|