Using Multiple Data Source Projects

With the scaffolded presentation projects types, you can link one or more data source projects to your presentation project. Perform the following procedures.

Create the Presentation Project

To create the presentation project, follow these steps:

  1. Create your presentation project using the Create a new project dialog.

    • To add your project to an existing solution, click File, select Add, and select New Project....

    • To create a new solution, click File, select New, and select Project.

  2. In the Create a new project dialog box, do the following:

    Notes:

    • Select C# or All Languages from the Language list.

    • Select Windows or All Platforms from the Platform list.

    The ePortal templates are not displayed if other values are selected.

    1. Select ePortal Presentation from the Project Type list.

      The ePortal Presentation templates are displayed.

    2. From the templates list, select the desired template, and then click Next.

  3. Optionally, change the Project name, Location, and Framework, and click Create.

    Notes:

    • If you do not select a desired Framework, a default Framework version is selected.

    • For information on selecting the .NET version, refer to Multi-Targeting Issues.

    The new presentation project appears in Solution Explorer.

Add One or More Data Source Projects to the Solution

After you have created a presentation project, you must add one or more data source projects. If you have not already created your data source project, you can create it at this point. Refer to the topic Modernizing Your Application for more information.

Before you begin, you must open your data source project in the same solution as your presentation project. If you already have a data source project created in another solution, you can add it to the solution containing the presentation project by doing the following:

  1. Click File, select Add, and select Existing Project.

  2. Browse to the location of the data source project file and click Open.

    You can add as many data source projects to the solution as needed.

    Note: If your data source project targets a .NET version earlier than 4.5, then you will need to change the .NET version to 4.5.2 or later. Refer to Multi-Targeting Issues.

Add One or More Data Source References to the Presentation Project

Add one or more data source project references to your presentation project, as follows:

  1. In Solution Explorer, right-click the presentation project name and select Add Unisys ePortal Data Source Reference.

    The Add Unisys ePortal Data Source Reference Dialog box appears. For more information, refer to Adding Unisys ePortal Data Source Reference.

  2. Select one or more data source projects and click OK.

Scaffold One or More Data Sources in the Presentation Project

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 you application that you may want to further modify to refine your application.

To scaffold one or more data sources in your presentation project, follow the steps in Invoking Scaffolders.