Databases Reference
In-Depth Information
FIGURE 2.16 Add function import.
When you click the OK button in the Add Function Import dialog, the function import is
added to the conceptual section of the model. You can find it under Entity
Container/Function Imports in the model browser; Figure 2.17 shows an example.
FIGURE 2.17 Function import in the conceptual section of model browser.
For each function import, the Entity Designer generates a strongly-typed method in the
ObjectContext class. Following is an example of using the newly added
GetProductsToReorder method to list all products returned by the stored procedure:
 
Search WWH ::




Custom Search