Open Closed

Reporting Data from Raw Sql #6447


User avatar
0
SuperBeastX3 created
  • ABP Framework version: v7.4
  • UI Type: MVC
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes

What is the proper ABP implementation to add a repository that does not have an underlying entity? It is not based on an entity that maps to a table. For example, I have a dashboard that is running a complex query that joins many of my underlying tables, but I can't seem to register the repository in the EF Module. The add default repositories doesn't seem to pick up my repository, probably because it does not inherit efcorerepository. What is the right way to register it? Or, do I need to create an entity that does not map to an actual table?


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    https://github.com/abpframework/abp-samples/blob/master/Dapper/DapperDemo/Repositories/DapperBookRepository.cs https://community.abp.io/posts/new-raw-sql-queries-for-unmapped-types-with-ef-core-8.0-ahc815sn https://github.com/abpframework/abp-samples/tree/master/StoredProcedureDemo

Made with ❤️ on ABP v9.1.0-preview. Updated on December 10, 2024, 06:38