Creating the ASP.NET MVC Projects

You can create an ASP.NET MVC project within an existing AB Suite User Experience mode project or create a new ASP.NET MVC project, and then add the DataModel project or assembly generated by the AB Suite Client Framework application.

To create an AB Suite MVC project within an existing AB Suite project associated with User Experience mode model, perform the following:

  1. Open an existing AB Suite User Experience mode model, and then add a Technology folder.

    Alternatively, you can convert an existing AB Suite model to an AB Suite User Experience mode model by using the New Application From A File option in the New Project dialog box, and then create a Technology folder. Refer to the Agile Business Suite Developer User Guide for more information.

  2. Right-click the Technology folder and select Properties from the context menu.

    The <TechnologyFolderName> Property Pages dialog box appears.

  3. From the Client Technology list, select .Net DataModels.

  4. Set the Generate User Experience mode Projects property to True.

  5. Set the Include ACTMTH property to True or False as required.

  6. Set the Include Ispec Header Items property to True or False as required.

  7. Click OK.

    Setting the Client Technology property to .NET DataModels generates a DataModels project containing DataModel classes that can be used by the standard .NET Framework applications, such as ASP.NET MVC.

    For example, when the Access Layer components are generated, a project named <SegmentName>.<TechnologyFolderName>.DataModels is generated to include the DataModels for the ispecs contained in the Technology folder.

  8. Right-click the System Modeler solution in the Solution Explorer window, point to Add, and then select New Project, to add an ASP.NET MVC project.

    The New Project dialog box appears.

  9. In the Project pane, expand Visual C#, and then click Web.

  10. In the Templates pane, select ASP.NET Web Application.

    Note: Select .NET Framework 4.7.2 from the Target Framework list to work with the AB Suite User Experience mode DataModels. You can find the Target Framework list on top of the Templates pane.

  11. In the Name box, enter the name of the project.

  12. In the Location box, enter the path or browse to the location where you want to store the new project.

  13. Click OK.

    The New ASP.NET Project dialog box appears.

  14. In the Select a template group, select MVC.

  15. In the Add folders and core references group, select Web API if required. This includes components that enable a Web API interface for your application.

  16. Click Change Authentication to select the type of authentication you require for your application.

    The Change Authentication dialog box appears.

  17. Select No Authentication.

    Note: Authentication is typically a customer specific requirement, and is normally added to a website, as required.

  18. Click OK.

This adds an ASP.NET MVC Web application project to the AB Suite Client Framework application.

You can now add a reference to the DataModel assemblies and Access Layer API assemblies in the ASP.NET MVC project.