2
Answers

CRUD operations in ASP.NET MVC via EF Code First using SP's

Photo of Awais Zafar

Awais Zafar

7y
156
1

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 had tried it in a database-first approach and succeeded, but in a code-first approach, I've been stuck for the past week.

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 StudentInfo 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?

Thanks in advance.

Answers (2)

0
Photo of Naresh Singhal
NA 567 859 7y
Hi  Awasis ...
 
Kindly go through below link...
 
 
http://www.c-sharpcorner.com/UploadFile/ff2f08/code-first-stored-procedure-entity-framework-6-0/ 
 
Hope it will help you to bring solution 
0
Photo of Mangesh Gaherwar
NA 4.1k 70.9k 7y
Hi awais
 
http://www.c-sharpcorner.com/UploadFile/ff2f08/code-first-stored-procedure-entity-framework-6-0/
 
did u follow this link please check this once 
 
in this case we need to map the insert update options in the Application context and map it to our sp this explains in details