Skip to content

Commit 0c036e5

Browse files
authored
Merge pull request #24009 from abpframework/EngincanV/revise-bookstore-suite-tutorial
Update BookType enum creation instructions on suite-bookstore tutorial
2 parents bedaff1 + 3644dbb commit 0c036e5

File tree

1 file changed

+2
-2
lines changed
  • docs/en/tutorials/book-store-with-abp-suite

1 file changed

+2
-2
lines changed

docs/en/tutorials/book-store-with-abp-suite/part-02.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ After clicking the related command, pre-integrated browser of ABP Studio should
4545

4646
## Creating the Book Entity
4747

48-
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:
48+
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:
4949

5050
```csharp
5151
namespace Acme.BookStore.Books;
@@ -64,7 +64,7 @@ public enum BookType
6464
}
6565
```
6666

67-
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.
67+
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.
6868

6969
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:
7070

0 commit comments

Comments
 (0)