- 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)
-
0
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