Starts in:
1 DAY
6 HRS
0 MIN
56 SEC
Starts in:
1 D
6 H
0 M
56 S
Open Closed

Question: How to build an application service with an infrastructure layer. #298


User avatar
0
sean.alford created

We need to build a service that will manage sequential numbers across multiple modules.

ISequentialNumberManager _sequentialNumberManager

// Get the next ticket number
Ticket.Number = await _sequentialNumberManager.GetNextAsync("TicketNumber");

Should we simply create a module without a UI, or is there a better best practice?


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    if it is a simple service and not use database,you can just create libary project , like volo.abp.automapper.

  • User Avatar
    0
    sean.alford created

    @liangshiwei it will use a database to store the current seq number for a given entitiy.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can refer the audit-loggin module.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06