Episode 435: Julie Lerman on Object Relational Mappers and Entity Framework

Topics covered
Popular Clips
Episode Highlights
Evolution
Entity Framework has undergone significant transformations since its inception, evolving through multiple versions to enhance functionality and adaptability. explains that the original Entity Framework was rewritten to align with modern software practices, resulting in the creation of EF Core, which offers cross-platform capabilities and a more flexible API 1. This evolution addressed initial criticisms, such as the framework's intrusion into domain classes, by adopting a more respectful approach to domain logic 2.
They rewrote it from scratch, keeping a lot of the same concepts. So people who were familiar who've been using it framework, they wouldn't be totally thrown for a loop.
---
The transition from EF6 to EF Core marks a shift towards a cleaner architecture, allowing developers to achieve more functionality that was previously unattainable with the older stack 1.
Domain Models
Handling domain model design has been a challenge for Entity Framework, but recent versions have made significant strides. highlights that EF Core allows developers to encapsulate collections and protect them from misuse, a feature that was previously impossible 3. This advancement enables developers to design their APIs with greater control, ensuring that only intended operations are permitted 4.
You can write your class the way you want to, and you can use the patterns that we use to encapsulate collections and protect them from abuse, misuse.
---
Additionally, EF Core supports creating databases from domain models, offering flexibility for projects without existing databases 4.
Eager Loading
Eager loading in Entity Framework has seen notable improvements, particularly with the introduction of EF Core 5. discusses how the new version allows developers to include related data with filters, a capability that was previously cumbersome 5. This enhancement simplifies data retrieval by enabling more precise queries, reducing the need for complex workarounds.
The include method says, please get me the customers and their orders. And include transforms that into like a join query or something like that.
---
These advancements make it easier for developers to manage data efficiently, leveling the playing field for those less familiar with SQL 5.
Related Episodes


Episode 435: Julie Lerman on Object Relational Mappers and Entity Framework
Answers 383 questions

Episode 121: OR Mappers with Michael Plöd
Answers 383 questions

Episode 117: Bran Selic on UML
Answers 383 questions

Episode 67: Roundtable on MDSD and PLE
Answers 383 questions

Episode 189: Eric Lubow on Polyglot Persistence
Answers 383 questions

Episode 137: SQL with Jim Melton
Answers 383 questions

Episode 120: OCL with Anneke Kleppe
Answers 383 questions

Episode 14: Interview Ted Neward
Answers 383 questions

Episode-226-Eric-Evans-on-Domain-Driven-Design-at-10-Years
Answers 383 questions

Episode 218: Udi Dahan on CQRS (Command Query Responsibility Segregation)
Answers 383 questions

Episode 5: Model-Driven Software Development Pt. 1
Answers 383 questions

Episode 205: Martin Lippert on Eclipse Flux
Answers 383 questions

Episode 82: Organization of Large Code Bases with Juergen Hoeller
Answers 383 questions

SE-Radio-Episode-267-Jürgen-Höller-on-Reactive-Spring-and-Spring-5.0
Answers 383 questions

Episode 97: Interview Anders Hejlsberg
Answers 383 questions













