O'Reilly logo

Entity Framework Tutorial - Second Edition by Joydip Kanjilal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Mapping stored procedures to functions in the EDM

Stored procedures are represented as functions in the EDM. To use these functions, they should be mapped to a corresponding insert, update, or delete operation on the entity. To do this, you need to first create a function import and then use the designer to create its mapping. In this section, you will learn how to create these function imports for your EDM.

To begin, let's refer to the EDM we created earlier in this chapter. To create function imports, follow these steps:

  1. Switch to the Model Browser of the Payroll Entity Data Model.
  2. Expand the Entity Container and right-click on Function Imports.
  3. When you select Create Function Import, the New Function Import dialog appears and allows you to select ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required