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. [...]
Posts Tagged: Entity Framewrok
How to Populate data in Entity Framework code first on database creation
Yesterday I got chance to work on an ASP.Net MVC application, in which I was planned to use Entity Framework Code First as Model. But I found one issue with that approach, few of the tables, like Roles, Users etc, which may need to pre-populate data, instead of creating in runtime. After a few search [...]
Introduction to Code First development with Entity Framework
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
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 [...]