Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Entity Framework Core Hidden Gems v0.8.0

These slides accompany my talk "Entity Framework Core Hidden Gems." The code samples, talk videos, and additional resources are available on GitHub:

Basic Entity Framework Core features are, I guess, well-known to you. Plain mapping of objects to underlying database tables is straightforward and easy to use.

But EF Core has much more power to offer. My consultancy practice tells me that this power is often neither recognized nor known to developers.

In this talk, I share with you certain lesser-known EF Core features that I would expect to see more often in real-life code. They replace cumbersome hand-made "solutions" with robust alternatives that are easy to implement and maintain.

Through examples that depict real-life cases that I've seen, I'll demonstrate features that will help you to:
- gain more performance out of your queries.
- smoothly work with legacy databases.
- obtain readable diagnostic logs.
- fight anemic domain models.

You will leave the talk with two things under your belt - a set of powerful EF Core features and a clear understanding of how to put them into practice in your projects.

  • Be the first to comment

  • Be the first to like this

Entity Framework Core Hidden Gems v0.8.0

  1. 1. Entity Framework Core Hidden Gemsv0.8.0 @ironcev_
  2. 2. @ironcev_ Kvaliteta EF Core mi je malo pod upitnikom s obzirom da temeljne stvari poput svih inheritance strategija uopće nisu podržane (samo TPH).* * I doubt the quality of EF Core, seeing that essential things like all inheritance strategies are not supported at all (only TPH).
  3. 3. @ironcev_
  4. 4. @ironcev_
  5. 5. @ironcev_
  6. 6. #1 AsNoTracking() @ironcev_
  7. 7. @ironcev_
  8. 8. @ironcev_
  9. 9. @ironcev_
  10. 10. @ironcev_ Cum grano salis!
  11. 11. @ironcev_
  12. 12. #2 Keyless Entity Types @ironcev_
  13. 13. @ironcev_
  14. 14. #3 Defining Queries @ironcev_
  15. 15. @ironcev_
  16. 16. #4 Value Conversions @ironcev_
  17. 17. @ironcev_
  18. 18. @ironcev_
  19. 19. @ironcev_
  20. 20. #5 Query Tags @ironcev_
  21. 21. @ironcev_
  22. 22. @ironcev_
  23. 23. @ironcev_Файл:Martin-Fowler.jpg The catch comes when you look at the behavior, and you realize that there is hardly any behavior on these objects, making them little more than bags of getters and setters. I don't know why this anti-pattern is so common. Some technologies encourage it […] Martin Fowler, Anemic Domain Model (
  24. 24. #6 Entity Constructors @ironcev_
  25. 25. @ironcev_
  26. 26. @ironcev_
  27. 27. @ironcev_
  28. 28. #7 Backing Fields @ironcev_
  29. 29. @ironcev_
  30. 30. @ironcev_
  31. 31. @ironcev_
  32. 32. Jon P Smith Pawel Gerr Gunnar Peipman Julie Lerman @ironcev_
  33. 33. @ironcev_ erience ertise Trainings // Architectural Patterns // Working with Legacy Databases // Performance Tuning // Developing Database Agnostic Applications
  34. 34. @ironcev_
  35. 35. @ironcev_ Igor Rončević aka ironcev
  36. 36. @ironcev_