1. codegen module hnatc. customads/includeinsolution: True generation module framework
2. Use codegen part to automatically generate content. Installation is requiredCode Generation extensionsModule.
Syntax: codegen part<Module_name> <part_name>[/Properties: <comma-delimited list of name: Type pairs>]
Example: codegen part hnatc. customads adpart/properties: Name: String, price: int
It will automatically generate: handler, driver, model, record, display and editor shapes and updates the placement.info file with defaultContent: beforePlacement greatly reduces the workload
Note: The hnatc. customads project must be generated. Otherwise, the following command fails.
3,Codegen datamigration
Hnatc. customads generation migrations. CS class
4,Codegen controller hnatc. customads adscontroller
Original article generating orchard Content Parts via command-line