Chapter 11. Functions

Functions provide a power mechanism for code reuse and a good way to make your code cleaner and more understandable. They can also be used to leverage code in the Entity Framework runtime as well as in the database layer.

In the first seven recipes we explore model defined functions. These functions are new in the current release of Entity Framework and allow you to create functions at the conceptual layer. These functions are defined in terms of Entity Framework types and your model entities. This makes them portable across data store implementations.

In the remaining recipes we show you how to use functions defined by Entity Framework and the database layer. These functions are implemented for you and allow you to leverage ...

Get Entity Framework 4.0 Recipes: A Problem-Solution Approach 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.