Skip to content

Commit 4d6ce67

Browse files
committed
Updated power tools documentation for GenerateOverridableEntity
1 parent d464695 commit 4d6ce67

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

docs/en/Development-Guide-Rad-Tool-Mac-Linux.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ You can find specification of the JSON file fields in the table below;
3131
| Properties | Properties of your entity. See 'Table 2' for more. |
3232
| NavigationProperties | Navigation properties of your entity. See 'Table 3' for more. |
3333
| EnumDefinitions | Enum definitions you use on your entity. See 'Table 4' for more. |
34+
| GenerateUnitTest | Generates unit tests for created application service class. |
35+
| GenerateUiTest | Generates UI tests for the created entity. |
36+
| GenerateOverridableEntity | Creates abstract base classes and their implementations. So, for the regenerate operation, your custom code will not be overwritten. |
3437

3538

3639

docs/en/Development-Guide-Rad-Tool.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,13 @@ Here is the full list of the files that are created or modified by the tool, if
7979

8080
(Optionally, adds a database migration and updates the database.)
8181

82+
#### Overridable Entity option
83+
84+
When you select `Generate Overridable Entity` option (available for 3.4.0 and above), ASP.NET Zero Power Tools will create abstract base classes and their implementation for each server side class generated (expect excel exporter classes). There will be `ClassName.Extended.cs` files for each server side file.
85+
86+
So, you can write your custom code into `ClassName.Extended.cs` classes and ASP.NET Zero Power Tools will not make any modification to those files when you re-generate an entity.
87+
88+
ASP.NET Zero Power Tools is going to overwrite client side files (Cshtml, JavaScript, TypeScript and HTML). In order to keep changes on your client side files, you can make changes on these files in a single commit and [cherry pick](https://git-scm.com/docs/git-cherry-pick) this single commit after re-generating an entity.
8289

8390
### Client Side
8491

0 commit comments

Comments
 (0)