From 3644dbb39dded131beed859202e08996689ee444 Mon Sep 17 00:00:00 2001 From: EngincanV Date: Tue, 21 Oct 2025 13:40:40 +0300 Subject: [PATCH] Update BookType enum creation instructions on suite-bookstore tutorial Clarified the steps for creating the BookType enum and explained its usage as a property type in ABP Suite. Improved guidance for specifying the enum file path and its integration when defining entities. --- docs/en/tutorials/book-store-with-abp-suite/part-02.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/tutorials/book-store-with-abp-suite/part-02.md b/docs/en/tutorials/book-store-with-abp-suite/part-02.md index 4c624e2745..b18e7e515b 100644 --- a/docs/en/tutorials/book-store-with-abp-suite/part-02.md +++ b/docs/en/tutorials/book-store-with-abp-suite/part-02.md @@ -45,7 +45,7 @@ After clicking the related command, pre-integrated browser of ABP Studio should ## Creating the Book Entity -Before creating the `Book` entity, first we can create a `BookType` enum in the `Acme.BookStore.Domain.Shared` project under the **Books** folder as follows: +Before creating the `Book` entity, we need to create a `BookType` enum. This enum will be used as a property type in ABP Suite while defining the entity. So, open your code editor, create a new file named `BookType.cs` in the `Acme.BookStore.Domain.Shared\Books` folder and add the following content: ```csharp namespace Acme.BookStore.Books; @@ -64,7 +64,7 @@ public enum BookType } ``` -After creating an _enum_ file in your project, you can define it as a property while creating the entity. ABP Suite asks for an enum path to read the enum file, and set the namespace, and enum name in the generated code accordingly. Then, you can create the `Book` entity with some properties. +After creating the _enum_ file in your project, you can use it as a property type when creating entities in ABP Suite. When you specify an enum property, ABP Suite will prompt you to provide the path to the enum file. It then reads the file and automatically sets the namespace and enum name in the generated code. Now, let's create the `Book` entity with its properties. Type `Book` for the *Name* field and leave the other options as is. ABP Suite automatically calculates proper values for the rest of the inputs for you: