Appendix B. Entity Framework tips and tricks

Mastering Entity Framework doesn’t only mean knowing its set of APIs and their internal behavior. It also means finding the best ways to use it and to simplify development. This appendix is all about that.

We won’t cover a specific subject here; we’ll touch on various subjects, offering tips and tricks that couldn’t be included in previous chapters. Here you’ll find a set of classes and extension methods that let you write less code, making that code more readable and easier to maintain.

You’ll read about an extension method for simplifying the process of attaching entities, you’ll learn how to perform specific actions once an entity is persisted on the database, and you’ll discover how to perform ...

Get Entity Framework 4 in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.