Open Closed

Service and Repository classes #8556


User avatar
0
LiSong created
  • ABP Framework version: v9.X.X
  • UI Type: Angular / MVC / Blazor WASM / Blazor Server
  • Database System: EF Core (SQL Server, Oracle, MySQL, PostgreSQL, etc..) / MongoDB
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

I use abp suite to create CRUD pages, it creates Service and Repository classes for me. but I can't see the place where the services and repositories are registered, for instance: AddScoped or AddTransient, can you explain?


3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello

    Can you please check this document https://abp.io/docs/latest/suite/generating-crud-page.

    Thank you.

  • User Avatar
    0
    LiSong created

    Hello

    Can you please check this document https://abp.io/docs/latest/suite/generating-crud-page.

    Thank you.

    hi, I have already checked the page, it doesn't say about the DI, the CRUD pages are working, but I just wanted to figure out how the code works

  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi LiSong

    The services and repositories are registered to the dependency injection system by convention.

    See https://abp.io/docs/latest/framework/fundamentals/dependency-injection#inherently-registered-types https://abp.io/docs/latest/framework/fundamentals/dependency-injection#dependency-interfaces

    Thanks.

Made with ❤️ on ABP v9.1.0-preview. Updated on January 02, 2025, 07:06