Browse Source

Refactor module creation dialog in ABP Studio for modular crm tutorial

pull/21129/head
ahmetfarukulu 2 years ago
parent
commit
8cdb270eca
  1. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-ddd-module.png
  2. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-empty-module-dialog.png
  3. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-empty-module.png
  4. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module-additional-dialog.png
  5. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module-db-dialog.png
  6. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module-dialog.png
  7. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module-ui-dialog.png
  8. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module.png
  9. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-modular-crm-with-standard-module.png
  10. BIN
      docs/en/tutorials/modular-crm/images/abp-studio-modular-crm-with-two-modules.png
  11. BIN
      docs/en/tutorials/modular-crm/images/file-system-odering-module-initial-folder.png
  12. BIN
      docs/en/tutorials/modular-crm/images/file-system-ordering-module-initial-folder.png
  13. BIN
      docs/en/tutorials/modular-crm/images/ordering-module-visual-studio.png
  14. 34
      docs/en/tutorials/modular-crm/part-04.md

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-ddd-module.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 36 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-empty-module-dialog.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-empty-module.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module-additional-dialog.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module-db-dialog.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module-dialog.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module-ui-dialog.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-add-new-standard-module.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-modular-crm-with-standard-module.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
docs/en/tutorials/modular-crm/images/abp-studio-modular-crm-with-two-modules.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

BIN
docs/en/tutorials/modular-crm/images/file-system-odering-module-initial-folder.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

BIN
docs/en/tutorials/modular-crm/images/file-system-ordering-module-initial-folder.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
docs/en/tutorials/modular-crm/images/ordering-module-visual-studio.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

34
docs/en/tutorials/modular-crm/part-04.md

@ -16,25 +16,41 @@
In this part, you will build a new module for placing orders and install it in the main CRM application.
## Creating an Empty Module
## Creating a Standard Module
In this part, we have used the *DDD Module* template for the Product module and will use the *Empty Module* template for the Ordering module.
In this part, we have used the *DDD Module* template for the Product module and will use the *Standard Module* template for the Ordering module.
Right-click the `modules` folder on the *Solution Explorer* panel, and select the *Add* -> *New Module* -> *Empty Module* command:
Right-click the `modules` folder on the *Solution Explorer* panel, and select the *Add* -> *New Module* -> *Standard Module* command:
![abp-studio-add-new-empty-module](images/abp-studio-add-new-empty-module.png)
![abp-studio-add-new-standard-module](images/abp-studio-add-new-standard-module.png)
That command opens a dialog to define the properties of the new module:
![abp-studio-add-new-empty-module-dialog](images/abp-studio-add-new-empty-module-dialog.png)
![abp-studio-add-new-standard-module-dialog](images/abp-studio-add-new-standard-module-dialog.png)
Set `ModularCrm.Ordering` as the *Module name*, leave the *Output folder* as is and click the *Create* button. It will create the new `ModularCrm.Ordering` module under the `modules` folder in the *Solution Explorer*:
Set `ModularCrm.Ordering` as the *Module name*, leave the *Output folder* as is and click the *Next* button.
![abp-studio-modular-crm-with-two-modules](images/abp-studio-modular-crm-with-two-modules.png)
![abp-studio-add-new-standard-module-ui-dialog](images/abp-studio-add-new-standard-module-ui-dialog.png)
Since we've created an empty module, it is really empty. If you open the `modules/modularcrm.ordering` in your file system, you can see the initial files:
Similar to DDD module creation, 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.
![file-system-odering-module-initial-folder](images/file-system-odering-module-initial-folder.png)
![abp-studio-add-new-standard-module-db-dialog](images/abp-studio-add-new-standard-module-db-dialog.png)
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](images/abp-studio-add-new-standard-module-additional-dialog.png)
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](images/abp-studio-modular-crm-with-standard-module.png)
Since we've created a standard module, it doesn't have multiple layers like the DDD module. If you open the `modules/modularcrm.ordering` in your file system, you can see the initial files:
![file-system-odering-module-initial-folder](images/file-system-ordering-module-initial-folder.png)
Since only one UI package can be selected, the UI type doesn’t matter. This is why the package name is changed to *ModuleCrm.Ordering.UI*. Additionally, there are no *Domain*, *EntityFrameworkCore*, or *Http* layers like in the DDD module. We're going to use the `ModularCrm.Ordering` package for the domain business logic. You can open `ModularCrm.Ordering.sln` in your favorite IDE (e.g. Visual Studio):
![ordering-module-visual-studio](images/ordering-module-visual-studio.png)
## Creating the Module Packages

Loading…
Cancel
Save