This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
Override controller methods #922
Answered
by
adrianhall
PabloRuiz-TT
asked this question in
Q&A
-
Hello community, could someone tell me if in the documentation there is a way to override the existing controller methods when working with : TableController |
Beta Was this translation helpful? Give feedback.
Answered by
adrianhall
Apr 24, 2024
Replies: 1 comment 2 replies
-
All the controller methods are virtual. I would like to understand the use case that would cause this, however. If it is a common use case, I may just add a simplification for it. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In that case, I think you would be better off using a wrapper around the EntityTableRepository. Take a look at the MappedRepository (which is based on Automapper) as an example. That one is only a couple of dozen lines of code and does what you want. Even if you don't want to use Automapper, you can use that as a guide to implementing your own transforms.