Skip to content

Latest commit

 

History

History
104 lines (71 loc) · 2.8 KB

Part3-MVC-CreateHelpDeskEntities.md

File metadata and controls

104 lines (71 loc) · 2.8 KB

Acme Help Desk Tutorial - Part 3

About this tutorial:

Overview

In this tutorial we will demonstrate how to build the Help Desk entities outlined in Part-1: - Help Desk Domain Model.

Create TicketStatus

Click to expand! In the `Acme.HelpDesk.Domain.Shared` project, create a new folder named `TicketStatus`. Next, in the `TicketStatus` folder create a new class file named `TicketStatus.cs` containing the following code.

NOTE: Make sure the namespace is Acme.HelpDesk NOT Acme.HelpDesk.TicketStatus

TicketStatus.cs

namespace Acme.HelpDesk
{
    public enum TicketStatus
    {
        New,
        InProgress,
        OnHold,
        Closed,
    }
}

Create Oranization

Click to expand! In ABP Suite click `CRUD Page Generator` and fill in the `Entity info` tab as follows.

CreateOrganizationEntityInfo

Next, fill in the Properties tab as follows.

CreateOrganizationProperties

Next, click Save and generate.

Next, deploy the Organization migration using the DBMigrator.

Finally, run the Helpd Desk web application and explore the Organization.

Extend AppUser

Click to expand!

Create Tag

Click to expand! In the `ABP Suite CRUD Page Generator` and fill in the `Entity info` tab as follows.

CreateOrganizationEntityInfo

Next, fill in the Properties tab as follows.

CreateOrganizationProperties

Next, click Save and generate.

Next, deploy the Organization migration using the DBMigrator.

Finally, run the Helpd Desk web application and explore the Organization.

Create Ticket

Click to expand! In the `ABP Suite CRUD Page Generator` and fill in the `Entity info` tab as follows.

CreateOrganizationEntityInfo

Next, fill in the Properties tab as follows.

CreateOrganizationProperties

Next, fill in the Navigation properties tab as follows.

CreateOrganizationProperties

Next, click Save and generate.

Next, deploy the Organization migration using the DBMigrator.

Finally, run the Helpd Desk web application and explore the Organization.

Create Answer

Click to expand!