如何在mvc4中与服务器数据库建立连接 [英] how to do connection with server database in mvc4

查看:102
本文介绍了如何在mvc4中与服务器数据库建立连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

先生,我想在mvc4中连接数据库。但不是.mdf本地数据库。

sir,i want to connect database with in mvc4. but not .mdf local database.

推荐答案

使用ado.net,linqtosql或Entity Framework(已取代linqtosql)。谷歌每个解决方案,并选择你想要的。您可能更好地使用实体框架。
Use ado.net, linqtosql, or Entity Framework (which has superseded linqtosql). Google each solution and choose the one you want. You're probably better using Entity Framework.


http://www.asp.net/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-models-and-data-访问 [ ^ ]

链接到ASP MVC4.0和EF5.x中的现有SQLDB [ ^ ]

Google [ ^ ]



-KR
http://www.asp.net/mvc/overview/older-versions/hands-on-labs/aspnet-mvc-4-models-and-data-access[^]
Linking to an Existing SQLDB in ASP MVC4.0 and EF5.x[^]
and Google[^]

-KR


这篇关于如何在mvc4中与服务器数据库建立连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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