Browse Source

ABP suite code generation part

pull/21456/head
Halil İbrahim Kalkan 2 years ago
parent
commit
ab396336c7
  1. BIN
      docs/en/tutorials/microservice/images/abp-studio-abp-suite-inside.png
  2. BIN
      docs/en/tutorials/microservice/images/abp-suite-product-info.png
  3. BIN
      docs/en/tutorials/microservice/images/abp-suite-product-properties.png
  4. 35
      docs/en/tutorials/microservice/part-03.md

BIN
docs/en/tutorials/microservice/images/abp-studio-abp-suite-inside.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 125 KiB

BIN
docs/en/tutorials/microservice/images/abp-suite-product-info.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
docs/en/tutorials/microservice/images/abp-suite-product-properties.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 106 KiB

35
docs/en/tutorials/microservice/part-03.md

@ -30,7 +30,38 @@ It will ask to you which module you want to use:
![abp-studio-open-abp-suite-select-module](images/abp-studio-open-abp-suite-select-module.png)
The `CloudCrm` microservice solution contains more than one .NET solution. Typically, each ABP Studio module represents a separate .NET solution (see the [concepts](../../studio/concepts.md) document).
The `CloudCrm` microservice solution contains more than one .NET solution. Typically, each ABP Studio module represents a separate .NET solution (see the [concepts](../../studio/concepts.md) document). ABP Suite works on a single .NET solution to generate code, so we should select a module here.
ABP Suite works on a single .NET solution to generate code, and an ABP Studio module represents a separate .NET solution.
Select the `CloudCrm.Catalog` module and click the *OK* button. It will open ABP Suite as shown below:
![abp-studio-abp-suite-inside](images/abp-studio-abp-suite-inside.png)
## Generating a Products Page
In the next section, we will use ABP Suite to create a fully functional CRUD page with ABP Suite. The UI part will be in the main web application (`CloudCrm.Web`) and the application service and others parts will be generated in the Catalog microservice.
### Configuring the Product Entity Information
Type `Product` for the *Name* field and leave the other options as is. ABP Suite will automatically calculate proper values for your:
![abp-suite-product-info](images/abp-suite-product-info.png)
### Configuring Properties of the Product Entity
Open the *Properties* tab and create the properties shown in the following figure:
![abp-suite-product-properties](images/abp-suite-product-properties.png)
Here the details:
* `Name` is required, minimum length is `2` and maximum length is `120`.
* `Description` is not required, it is a *Text area*, not *Filterable*, not *Shown on the list page*.
* `StockCount` has a *Default value* `0`, minimum value `0` and maximum value `999999`.
* `ReleaseDate` is *Nullable*.
You can leave the other configurations as default.
### Generating the Code
That's all. You can click the *Save and generate* button to start the code generation process.

Loading…
Cancel
Save