Click here to Skip to main content
15,743,956 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm new to ASP.NET MVC and Entity Framework. I have assignment of performing CRUD operations using EF code-first approach via stored procedures.
I've searched on google but everywhere examples are so much complicated for me. Please do explain in easy and simple.For example we have a Student Info table with columns Id, Name, Age and Roll Number available for CRUD operations.
How to perform CRUD operation on this table using a code-first approach via stored procedures in ASP.NET MVC?

What I have tried:

I had tried it in a database-first approach and succeeded, but in a code-first approach, I've been stuck for the last week.

Thanks in advance.
Updated 3-Jan-18 0:44am

1 solution

I googled "entity framework code first stored procedure" and this was the first result

Entity Framework Code First and Stored Procedures[^]
Share this answer
OwaisCh 3-Jan-18 7:05am    
Sir I've visited all those links before. Please guide me in simple way with a simple example
F-ES Sitecore 3-Jan-18 7:13am    
If you can't follow any of the tutorials you've found then the task is probably beyond you. Get a book on Entity Framework and go through it so that you build up a good understanding of the technology, that is always better than trying to learn such a big subject from a few paragraphs on a tutorial.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900