Cakephp baking equivalent in asp.net mvc

I have been developing with cakephp for several years and now I want to try asp.net mvc.

Cakephp has a bake plugin that allows you to create standard functions based on custom templates. For instance. modifying these templates to suit my needs

1) for the controller

https://github.com/cakephp/bake/blob/master/src/Template/Bake/Controller/controller.ctp https://github.com/cakephp/bake/blob/master/src/Template/Bake/Element /Controller/index.ctp https://github.com/cakephp/bake/blob/master/src/Template/Bake/Element/Controller/add.ctp

2) for the model file

https://github.com/cakephp/bake/blob/master/src/Template/Bake/Model/table.ctp

3) for view files

https://github.com/cakephp/bake/blob/master/src/Template/Bake/Template/index.ctp https://github.com/cakephp/bake/blob/master/src/Template/Bake/Element /form.ctp

I could run a command from the CLI and get a full functional check, controller files with actions and view files - based on existing table structures and the relationships between them. The plugin will create the actual php files in the corresponding directories with the contents according to the template files. Preset baking patterns allow you to generate CRUD or any other custom functionality in minutes.

Is there any similar functionality in asp.net mvc (v5 or higher)? The desired features are to fully customize the templates that will be used to create the controllers, cshtml files and model files - if we already have tables with foreign key associations in the database. (Preferably free, but not required)

thanks

+5
source share
1 answer

I think this link can help you with templates in visual studio. If you want to use the command line, perhaps yeoman can help you. See this link to find out if this will work for you.

+1
source

Source: https://habr.com/ru/post/1257926/


All Articles