您好,如何在asp.net Mvc中使用webgrid对数据库执行CRUD操作 [英] Hello , How to perform CRUD operation with Database using webgrid in asp.net Mvc

查看:54
本文介绍了您好,如何在asp.net Mvc中使用webgrid对数据库执行CRUD操作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在DB中有一个Employee表,我想在asp.net mvc中使用Webgrid执行CRUD操作...

I have a Employee table in DB and I want to perform CRUD operation using Webgrid in asp.net mvc ...

推荐答案

因为你完全是一个新手到这个平台和功能我想提供一篇博客文章(现在是技术博客文章)给你,首先了解什么是CRUD,以及数据库连接对这个CRUD操作中的开发人员意味着什么。



我在ASP.NET中使用过SQL Server数据库(网页;你可以在你的MVC项目中使用相同的),然后应用一些链接(你可以使用)转换为动作和控制器)来执行CRUD。给它一个彻底的阅读,你也可以尝试下载附加到博客文章的包。您将能够充分理解更改HTML代码以在WebGrid中呈现它们。



如何将ASP.NET网站连接到远程数据库以进行CRUD操作 [ ^ ] 忽略远程数据库概念,您也可以连接本地数据库(项目内的数据库)这个项目有效。
Since you're totally a newbie to this platform and feature I would like to provide a blog post (now a Technical Blog post) to you to first learn what CRUDs are, and what Database connection means to the developer in this CRUD operation.

I have used SQL Server database in my ASP.NET (Web Pages; you can use the same for your MVC project) and then applied some links (which you can change into Actions and Controllers) to perform CRUDs. Give it a thorough read, and you can also try to download the package that is attached to the blog post. You would be able to get enough understanding to change the HTML codes to render them inside a WebGrid.

How to connect ASP.NET website to Remote Database for CRUD operations[^] Ignore the remote database concept, you can connect your local database (database inside your project) too for this project to work.


这篇关于您好,如何在asp.net Mvc中使用webgrid对数据库执行CRUD操作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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