Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
How to fetch data from angularjs using enetity framework??
Posted
Updated 3-Jun-15 2:12am
v2

1 solution

In MVC with Entity Framework you can use Angular JS to manipulate data i.e. save, retrieve , delete and update etc. You can write the API methods for CRUD operations (INSERT, UPDATE, DELETE, and READ) in the Web API where you use Entity Framework to talk to the database and from angular js you can use the API methods and in the view using the Angular tags/directives you can get the data and send the data to the API again.

There are lot of samples you can follow. Some of them are:
http://www.infragistics.com/community/blogs/dhananjay_kumar/archive/2015/05/13/how-to-use-angularjs-in-asp-net-mvc-and-entity-framework-4.aspx[^]
A basic SPA application using AngularJS,WebAPI and Entity Framework[^]
Using AngularJs, ASP.NET MVC, Web API and EntityFramework to build NLayered Single Page Web Applications[^]
http://java.dzone.com/articles/how-use-angularjs-aspnet-mvc[^]

Hope this will help
 
Share this answer
 
v2

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