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 December 05, 2024, 12:19