Posts Tagged: Entity Framewrok

How to use Stored procedure in Entity Framework Code First

Posted by & filed under .Net, .Net 4.0, EF Code First, Entity Framework.

Another EF Code First post. Long back I post about how to use Stored Procedure in Entity Framework. (You can find it here). This post is about how to use stored procedure in Entity Framework Code First. Here is my stored procedure. And here is code snippet which will help to execute this Stored procedure. [...]

Introduction to Code First development with Entity Framework

Posted by & filed under .Net, .Net 4.0, ASP.Net, ASP.Net MVC, SQL Server, WPF.

The Database First approach is interesting when the database already exists. You use Visual Studio and the Entity Framework Designer to generate the C# and VB.NET classes which reflect the existing database model. You may then change relations using the Designer (or the XML mapping files) later to further optimize the model. The priority is [...]

How to use Stored Procedures in Entity Framework

Posted by & filed under .Net, .Net 3.0 / 3.5, ASP.Net MVC, SQL Server, Windows Forms.

In the current project we are using Entity Framework for database operations. Entity Framework comes with Visual Studio SP1, which helps you to map tables / views / procedures as entities in C# / VB Code. You can find more details about EF from here : http://msdn.microsoft.com/en-us/library/bb399572.aspx. In this post I am explaining how to [...]