如何在web-api mvc 5,EF和Linq中的html表上显示数据库表? [英] How can I show a database table on an html table in web-api mvc 5, EF and Linq?

查看:89
本文介绍了如何在web-api mvc 5,EF和Linq中的html表上显示数据库表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我有一个可以上传和发布的web-api mvc应用程序。我创建了一个localDB和实体模型。我想创建一个在我的数据库中显示表的视图或页面。我不确定如何只使用Razor代码或者如果我需要在web api mvc中执行标准程序。或者,如果我可以使用LINQ。我试图寻找一种方法,但它似乎无法找到我正在寻找的东西。所以我向你们展示Code Project的美丽人物。

Hi,

I have a web-api mvc app that can get and post. I have a localDB and entity model created. I want to create a view or page that shows a table in my database. I'm not sure though how I can do that with just Razor code or if there is a standard procedure I need to do in web api mvc. Or if I can use LINQ. I tried to search for a way to do it but it can't seem to find what I'm looking for. So I turn to you beautiful people of Code Project.

推荐答案

有一个教程完全符合你的描述 [ ^ ]



这是google上第一个在mvc中显示数据表数据的链接。
There is a tutorial that does exactly what you describe[^]

It was a first link on google for "show datatable data in mvc".


这篇关于如何在web-api mvc 5,EF和Linq中的html表上显示数据库表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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