3 ms·
I'm a huge Dapper fan. To be fair, I have never really done a full blown project with entity framework.. but I seem to always need a bit more control than it's
by mrlala 6y ago
I'm a huge Dapper fan.
To be fair, I have never really done a full blown project with entity framework.. but I seem to always need a bit more control than it's offering. So I just created a simple repository framework (inspired by https://www.youtube.com/watch?v=rtXpYpZdOzM https://www.youtube.com/watch?v=rtXpYpZdOzM ) overlay in which the functions end up calling dapper.
The beauty of this is it's pretty simple to setup the overlay, and allows complete control of what is going on. I have a need for "dynamic" table names. I don't think there is even a way to do this in EF (at least not a simple way), but when I have my own repo overlay it's really a piece of cake. I just tack on whatever specific function input I need to help define what the resulting table name is that its great.
This is probably not the most common use, but a simple repo overlay to a micro orm is not much work and gives full control.