Abrir Fechadas

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


User avatar
0
sean.alford criada

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 resposta (s)
  • User Avatar
    0
    liangshiwei criada
    Equipe de Apoio 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 criada

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

  • User Avatar
    0
    liangshiwei criada
    Equipe de Apoio Fullstack Developer

    Hi,

    You can refer the audit-loggin module.

Made with ❤️ on ABP v8.2.0-preview Updated on março 25, 2024, 15:11