Scaffolding is the technique used to generate the presentation code that the application can use at run time. The generated code represents a useful starting point for your application that you may want to further modify to refine your application.
The code generated by scaffolding is controlled by Scaffold Templates.
WCF Service Scaffolding
For a WCF Service Application using Scaffolding, the scaffolder generates the C# code files that implement the web service and define the web service interface. To perform WCF service scaffolding, refer to Scaffold Unisys WCF Service for ePortal Data Source Dialog.
Controller Scaffolding
For Web API RESTful Service Projects, the scaffolder generates the C# code file that implements the controller. To perform controller scaffolding for a Web API RESTful service, refer to Scaffold Unisys Web API Controller for ePortal Data Source Dialog.
For MVC Web Application Projects, the scaffolder generates the C# code file that implements the controller. To perform controller scaffolding, refer to Scaffold Unisys Controller for ePortal Data Source Dialog.
You can also use the Scaffold Unisys Controller for ePortal Data Source with Views Dialog to scaffold both the controller and views (see below).
View Scaffolding
For each client message, ePortal generates a model when the data source project is compiled. The model is a C# class that contains a model property for each field in the client message. The model itself and each property in the model is annotated with special data annotations that describe the property (refer to http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations(v=vs.110).aspx).
For example, each property includes a UIHint annotation (refer to http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.uihintattribute(v=vs.110).aspx); ePortal automatically adds the UIHint annotation that matches the value you specified for ControlStyle in the client message. Refer to Controlling the Look and Feel in All Data Source Projects.
During scaffolding, the view scaffolder generates one view from each model in the ePortal data source. In this case, a view is represented by a C# razor file, which has an extension of .cshtml. Views are typically located in the folder Views\<controllername>, where <controllername> is the name of the controller.
Each web page (the pure HTML) is generated at runtime from a view.
For MVC Web Application Projects, the scaffolder generates the views. Refer to the Scaffold Unisys Controller for ePortal Data Source with Views Dialog to generate multiple views, or Scaffold Unisys View Dialog to generate a single view.