Jasinski Technical Wiki

Navigation

Home Page
Index
All Pages

Quick Search
»
Advanced Search »

Contributor Links

Create a new Page
Administration
File Management
Login/Logout
Your Profile

Other Wiki Sections

Software

PoweredBy

Stored Procedures with Entity Framework

RSS
Modified on Thu, Mar 17, 2011, 12:36 PM by Administrator Categorized as LINQ

Overview

This article walks through adding a stored procedure to an Entity Model.

Details

This procedure assumes you have already added the stored procedure to your Entity Model via Update Model from Database.

1. Open your Entity Model and right click on the design surface. From the context menu choose Model Browser.

Entity Model Context Menu

Entity Model Context Menu


2. In the Model Browser, navigate to one of the following two places

  • MyEntities.edmx > MyModel > EntityContainer: MyEntities > Function Imports > right click > Add Function Import
  • MyEntities.edmx > MyModel.Store > Stored Procedure > GetMenuItems stored procedure > right click > Add Function Import

Model Browser

Model Browser




ScrewTurn Wiki version 3.0.1.400. Some of the icons created by FamFamFam. Except where noted, all contents Copyright © 1999-2018, Patrick Jasinski.