Diese Präsentation wurde erfolgreich gemeldet.
Wir verwenden Ihre LinkedIn Profilangaben und Informationen zu Ihren Aktivitäten, um Anzeigen zu personalisieren und Ihnen relevantere Inhalte anzuzeigen. Sie können Ihre Anzeigeneinstellungen jederzeit ändern.

Entity Framework and Dapper, Working Together

60 Aufrufe

Veröffentlicht am

Talk from Atlanta SQL Saturday

Veröffentlicht in: Technologie
  • Als Erste(r) kommentieren

  • Gehören Sie zu den Ersten, denen das gefällt!

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

×