Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Calling Functions in LINQ to Entities Queries

The topics in this section describe how to call functions in LINQ to Entities queries.

The EntityFunctions and SqlFunctions classes provide access to canonical and database functions as part of the Entity Framework. For more information, see How to: Call Canonical Functions and How to: Call Database Functions.

The process for calling a custom function requires three basic steps:

  1. Define a function in your conceptual model or declare a function in your storage model.

  2. Add a method to your application and map it to the function in the model with an EdmFunctionAttribute.

  3. Call the function in a LINQ to Entities query.

For more information, see the topics in this section.

In This Section

See Also

Build Date:

© 2015 Microsoft