Mapping a Stored Procedure to an Entity with Entity Framework

ADO.NET Entity Framework initially generates a 1:1 (one to one) mapping between the database schema and the conceptual schema in most of the cases. In the relational schema, the elements are composed of the tables, with the primary and foreign keys gluing the related tables together. In contrast, the Entity Types define the conceptual schema of the data. One is sure РADO.NET Entity Framework makes it easy when it comes to work with a database. But is it sure?

Suppose you have created your entities using the Visual Studio 2008 wizard.
ADO.NET Entity Framework

Continue Reading…