Reconciling Client Message Changes to Scaffolded Presentation Projects

If you make changes to the client messages in a data source project after you perform scaffolding of your presentation project, you may need to make corresponding changes in any scaffolded presentation projects that reference that data source project.

Refer to the following topics for more information:

Changing Existing Client Messages

If you change an existing client message and you already performed scaffolding on your presentation project, do the following depending on the particular type of presentation project involved.

For each WCF Service Application using Scaffolding:

  1. Open the Scaffold Unisys WCF Service for ePortal Data Source Dialog, complete all fields and click OK.

  2. When prompted to overwrite the existing files, select Yes.

For each MVC Web Application:

Review the reconcile issues documented in the following topics of Scaffold Templates for the particular view scaffold template(s) that you used to scaffold your project, to determine if any action is required:

To rescaffold a single view:

  1. Open the Scaffold Unisys View Dialog, complete all fields and click OK.

  2. When prompted to overwrite the existing view file, select Yes.

    Note: You will lose any custom changes that you made to that view.

Alternatively, if you need to rescaffold several views:

  1. In Solution Explorer, navigate to the project folder that contains the existing view (.cshtml) files, typically Views\<controllername>, where <controllername> is the name of your controller.

  2. Delete any view files that need to be rescaffolded.

    Note: You will lose any custom changes that you made to those views.

  3. Open the Scaffold Unisys Controller for ePortal Data Source with Views Dialog, complete all fields and click OK.

  4. When prompted to overwrite any existing files, select No for the controller and No to All for the views. This leaves all existing files intact, but regenerates the view files that you deleted.

Adding or Deleting Client Messages

If you add a new client message or delete an existing client message, and you already performed scaffolding on your presentation project, do the following depending on the particular type of presentation project involved.

For each WCF Service Application using Scaffolding:

  1. Open the Scaffold Unisys WCF Service for ePortal Data Source Dialog, complete all fields and click OK.

  2. When prompted to overwrite the existing files, select Yes.

For each Web API Application:

  1. Open the Scaffold Unisys Web API Controller for ePortal Data Source Dialog, complete all fields and click OK.

  2. When prompted to overwrite the controller, select Yes.

For each MVC Web Application:

  1. In Solution Explorer, navigate to the project folder that contains the existing view (.cshtml) files, typically Views\<controllername>, where <controllername> is the name of your controller.

  2. Delete view files that correspond to deleted client messages, if any.

  3. Open the Scaffold Unisys Controller for ePortal Data Source with Views Dialog, complete all fields and click OK.

  4. When prompted to overwrite the controller, select Yes.

  5. When prompted to overwrite a view, select No to All. This creates any new views that are needed; however, none of the existing views are changed.