Se ha denunciado esta presentación.
Utilizamos tu perfil de LinkedIn y tus datos de actividad para personalizar los anuncios y mostrarte publicidad más relevante. Puedes cambiar tus preferencias de publicidad en cualquier momento.
Shawn Wildermuth
Microsoft MVP, Author, and Speaker
https://wildermuth.com
@shawnwildermuth
Optimizing Data Access
Mixing ...
Who Am I?
Author, Instructor, Coach
Pluralsight Author
> 20 Courses to my name
http://shawnw.me/psauthor
Wilder Minds Trai...
Optimization
Basics Speed is Everything
But is it really?
Can’t optimize if you can’t measure
Premature optimization anti-...
What to
Optimize? Too easy to optimize the wrong thing…
Before you optimize…measure, twice
Long running queries aren’t alw...
Is Entity
Framework
That Bad?
Entity Framework Gets a Bad Rap
Does the simple stuff really well
It’s slower than raw execu...
What is
Dapper?
StackExchange’s SQL-Serialization Lib
Extends ADO.NET to do object mapping
Expects you to do SQL yourself
...
What is
Dapper? Open Source
Full set of perf tests against other libs
Side-by-side with ORMs is easy
Large community suppo...
Demo
Performance Differences
Demo
Using Dapper
Demo
Something more complex
Takeaways Get It:
github.com/stackexchange/dapper
My Blog (for this demo):
wildermuth.com
Próxima SlideShare
Cargando en…5
×

Entity Framework and Dapper, Working Together

66 visualizaciones

Publicado el

Talk from Atlanta SQL Saturday

Publicado en: Tecnología
  • Sé el primero en comentar

  • Sé el primero en recomendar esto

Entity Framework and Dapper, Working Together

  1. 1. Shawn Wildermuth Microsoft MVP, Author, and Speaker https://wildermuth.com @shawnwildermuth Optimizing Data Access Mixing Entity Framework Core and Dapper
  2. 2. Who Am I? Author, Instructor, Coach Pluralsight Author > 20 Courses to my name http://shawnw.me/psauthor Wilder Minds Training Courses on Vue, Bootstrap 4 & SignalR http://shawnw.me/my-courses Making a Film Hello World Film http://helloworldfilm.com
  3. 3. Optimization Basics Speed is Everything But is it really? Can’t optimize if you can’t measure Premature optimization anti-pattern
  4. 4. What to Optimize? Too easy to optimize the wrong thing… Before you optimize…measure, twice Long running queries aren’t always bad Learn how to read an execution plan
  5. 5. Is Entity Framework That Bad? Entity Framework Gets a Bad Rap Does the simple stuff really well It’s slower than raw execution But within the benefits of its simplicity Improved greatly since 1.0-4.0 timeframe
  6. 6. What is Dapper? StackExchange’s SQL-Serialization Lib Extends ADO.NET to do object mapping Expects you to do SQL yourself Allows fine-grained control of queries Harder to do the simple things
  7. 7. What is Dapper? Open Source Full set of perf tests against other libs Side-by-side with ORMs is easy Large community support
  8. 8. Demo Performance Differences
  9. 9. Demo Using Dapper
  10. 10. Demo Something more complex
  11. 11. Takeaways Get It: github.com/stackexchange/dapper My Blog (for this demo): wildermuth.com

×