Epic Blog of Awesome

code.tech.sci.math.art.write

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

Many application developers and database administrators use stored procedures to enforce security, provide predictability, and encapsulate logic on data inside the database. The example in this topic provides the basic elements of schema syntax required to map a stored procedure to an Entity Data Model (EDM) implementation. The stored procedure can then be called by code in an application that uses the data model.

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