WebAPI + EF core is kind of on the slow side for presenting information, if I compare this to straight Dapper.
Previously some of you said you have Dapper for quickly presenting data, and would use EF Core for CRUD.
I tried to implement this by putting all the Dapper code inside the Controller project, and that killed WebAPI that had worked previously. Not sure if my implementation was lacking. Took all the Dappers stuff out and now what I had works again.
My next move will be to create a separate project, but was wondering what your suggestions would on what the best way is of mixing EF Core and Dapper.
Advice?
Click on "Mark as Answer" if my answers help you along.
Contributor
2619 Points
2753 Posts
Mixing WebAPI and Dapper - how to set up?
Feb 12, 2021 02:42 PM|wavemaster|LINK
WebAPI + EF core is kind of on the slow side for presenting information, if I compare this to straight Dapper.
Previously some of you said you have Dapper for quickly presenting data, and would use EF Core for CRUD.
I tried to implement this by putting all the Dapper code inside the Controller project, and that killed WebAPI that had worked previously. Not sure if my implementation was lacking. Took all the Dappers stuff out and now what I had works again.
My next move will be to create a separate project, but was wondering what your suggestions would on what the best way is of mixing EF Core and Dapper.
Advice?