FunctionImportMapping (MSL)

In the Entity Data Model (EDM), the FunctionImportMapping element specifies a function in the conceptual schema that is used to handle queries that return EntityType data. The FunctionImportMapping element contains the FunctionImportName and FunctionName attributes. The FunctionImportMapping element is contained by the EntityContainerMapping element.

The following FunctionImportMapping element specifies the GetOrderDetails stored procedure that is imported in the conceptual schema by using the FunctionImport element.

<FunctionImportMapping FunctionImportName="GetOrderDetails"
           FunctionName="AdventureWorksModel.Store.GetOrderDetails"/>

For information about mapping stored procedures that modify data, see Stored Procedure Support (Entity Framework).

See Also

Tasks

How to: Define a Model with a Stored Procedure (Entity Framework)

Concepts

FunctionImport Element (CSDL)