如何使用MVC访问数据库SQL Server [英] How to access database SQL server using MVC

查看:258
本文介绍了如何使用MVC访问数据库SQL Server的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用MVC访问数据库SQl服务器?如果我没有错,那么实现框架,ADO.NET和LINQ的方法有三种。



除了所有这些还有其他任何方式?

请告诉我如何使用LINQ,...访问任何链接或小示例或任何类型的文档来访问数据库。

我们非常感谢您的帮助

How to access database SQl server with MVC? If I am not wrong then there are three ways to do that which are Entity Framework, ADO.NET and LINQ.

In addition to all these is there any other way?
And please let me know how to access database using LINQ,.. with any link or small example or any sort of document.
Your help would be highly appreciated

推荐答案

如果你想使用linq,那么使用Entity Framework。已经有成千上万的例子,只是谷歌为他们。
If you want to use linq then use Entity Framework. There are already thousands of examples out there, just google for them.


这是一个完整的crud操作的例子使用linq到sql使用mvc



使用LINQ to SQL CRUD操作在MVC
Here is an example of complete crud operation using linq to sql using mvc

CRUD Operations Using LINQ to SQL in MVC


这篇关于如何使用MVC访问数据库SQL Server的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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