Open Source Web Application Framework for ASP.NET Core
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

3.6 KiB

Creating the Initial Ordering Module

//[doc-nav]
{
  "Previous": {
    "Name": "Building the Catalog Module",
    "Path": "tutorials/modular-crm/part-03"
  },
  "Next": {
    "Name": "Building the Ordering module",
    "Path": "tutorials/modular-crm/part-05"
  }
}

In this part, you will build a new module for placing orders and install it in the main CRM application.

Creating a Standard Module

In the first part of this tutorial, you created the ModularCrm solution with modularity enabled by selecting the Setup as a modular solution option. At that time, you also created your first module - ModularCrm.Catalog - using the Standard Module template.

Now, you will create a second module for the ModularCrm solution through ABP Studio. This new module, called Ordering, will handle all order related functionality in the application.

To add a new module, right-click the modules folder on the Solution Explorer panel, and select the Add -> New Module -> Standard Module command:

abp-studio-add-new-standard-module

That command opens a dialog to define the properties of the new module:

abp-studio-add-new-standard-module-dialog

Set ModularCrm.Ordering as the Module name, leave the Output folder as is and click the Next button.

abp-studio-add-new-standard-module-ui-dialog

You can choose the type of UI you want to support in your module or select No UI if you don't need a user interface. In this example, we'll select the MVC option and click Next. One difference is that, for a standard module, you can only choose one UI type.

abp-studio-add-new-standard-module-db-dialog

The same limitation applies to the database selection. You can only choose one database provider for a standard module. Select the Entity Framework Core option and click Next.

abp-studio-add-new-standard-module-additional-dialog

You can uncheck the Include Tests option to keep the module simple. Click the Create button to create the module.

abp-studio-modular-crm-with-standard-module

Installing into the Main Application

In this section, you will install the ModularCrm.Ordering module in the main application so it can be part of the system.

Before the installation, please ensure the web application is not running.

Right-click the ModularCrm module (under the main folder) and select the Import Module command:

abp-studio-import-module-for-ordering

That command opens the Import Module dialog:

abp-studio-import-module-for-ordering-dialog

Select the ModularCrm.Ordering module and check the Install this module option as shown in the preceding figure. When you click the OK button, a new dialog is shown to select the packages to install:

abp-studio-install-module-dialog

Select the ModuleCrm.Ordering and ModularCrm.Ordering.UI packages from the left area and the ModularCrm package from the middle area as shown in the preceding figure. Finally, click OK.

Summary

In this part of the tutorial, you've created a standard module. This allows you to create modules or applications with a different structure. In the next part, you will add functionality to the Ordering module.