在MVC中实现已创建的数据库 [英] implementing already created database in MVC

查看:100
本文介绍了在MVC中实现已创建的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是MVC的新手,曾参与过ASP.NET2.0。



我用Google搜索MVC,发现Entity Framework负责数据库连接和LINQtoSQL也是另一种方式。



我必须使用哪一个已经创建的数据库以获得更好的性能:

1)实体框架

2)LINQtoSQL

3)或直接使用存储过程,表格和视图

(即没有EF和LINQtoSQL)



请建议我。

I am a newbie to MVC, have worked on ASP.NET2.0.

I have googled MVC and found that Entity Framework takes care of the database connection and LINQtoSQL is also an another way.

Which one i have to use for a already created database for better performance:
1) Entity Framework
2) LINQtoSQL
3) or Use the stored procedures, tables and views directly
(ie. without EF and LINQtoSQL)

Please suggest me.

推荐答案

使用Entity Framework可以轻松与Databese表进行通信。我们可以编写Store Procedures并使用Entity Framework来使用它们。



当你熟悉linq Quiery写作时你可以使用LINQ ..



一旦推荐这个链接,你可能会有所了解......



http://msdn.microsoft.com/en-us/data/gg685489 [ ^ ]
Using Entity Framework is some what easy to communicate with Databese tables.And we can write Store Procedures and use them using Entity Framework..

You can use LINQ when you are familiar with the linq Quiery writing..

Once Refer this link,So u may get an idea..

http://msdn.microsoft.com/en-us/data/gg685489[^]


这篇关于在MVC中实现已创建的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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