如何使用实体框架从angularjs获取数据 [英] How to fetch data from angularjs using entity framework

查看:101
本文介绍了如何使用实体框架从angularjs获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用enetity框架从angularjs获取数据?

解决方案

在MVC with Entity Framework中,您可以使用Angular JS来操作数据,即保存,检索,删除您可以在Web API中编写用于CRUD操作(INSERT,UPDATE,DELETE和READ)的API方法,您可以使用Entity Framework与数据库进行通信,并从角度js中使用API​​方法并在使用Angular标签/指令查看,您可以获取数据并再次将数据发送到API。



您可以关注很多样本。其中一些是:

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 [ ^ ]

使用AngularJS,WebAPI和Entity的基本SPA应用程序框架 [ ^ ]

使用AngularJs,ASP.NET用于构建NLayered单页Web应用程序的MVC,Web API和EntityFramework [ ^ ]

http://java.dzone.com/articles/how-use-angularjs-aspnet-mvc [ ^ ]



希望这会有所帮助

How to fetch data from angularjs using enetity framework??

解决方案

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


这篇关于如何使用实体框架从angularjs获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆