我们真的使用Entity Framework吗? [英] Do we really use Entity Framework?

查看:204
本文介绍了我们真的使用Entity Framework吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说过很多,EF是连接数据并将数据插入SQL表的快捷方式,它消除了大部分与SQL连接的代码。但我们以大型BFSI应用程序为例,我们必须在SP内部编写所有业务逻辑。正如我所读到的,EF通过调用每个表的类对象直接与SQL通信以对数据执行CRUD。



现在我的问题是这个



1.我们真的在这种应用程序中使用EF吗?

2.如果我们使用那么部署会花费更少的时间吗?

3.我们可以直接使用Application Block而不是EF吗?



我担心的是我是否应该在大型应用程序中使用EF,所以我想从那些在大型应用程序中使用EF并且没有遇到任何问题的技术人员那里了解。

I have heard and read a lot that EF is the fast way to connect and insert data into SQL table and it eliminates most of the code to connect with SQL. But we take the example of Large BFSI application where we have to have write all business logic inside the SP only. As i have read, EF directly communicating to SQL to perform CRUD on data by calling through class object of each table.

Now my question is this

1. Do we really use EF in such kind of Application?
2. If we use then will it take less time to deploy?
3. Can we use Application Block Directly instead of EF ?

My worry is that whether should i use EF in large application or not so i want to know from those experience techie who has been used EF in large application and did not face any issue.

推荐答案

请阅读我对这个问题的评论。



您可以在这里找到问题的答案:< a href =https://msdn.microsoft.com/en-us/library/gg696172%28v=vs.103%29.aspx>实体框架 [ ^ ]。



关于你的顾虑:
Please, read my comment to the question.

The answer to your questions you'll find here: Entity Framework[^].

As to your concern:
MSDN写道:

使用实体框架,开发人员c在处理数据时处于更高抽象级别的工作,并且可以使用比传统应用程序更少的代码创建和维护面向数据的应用程序。

With the Entity Framework, developers can work at a higher level of abstraction when they deal with data, and can create and maintain data-oriented applications with less code than in traditional applications.


您仍然可以调用SP使用实体框架,但如果你的系统包含SP内部的所有逻辑,那么我个人不会打扰EF。如果您只是拥有一个定义良好的关系数据库并且想要在代码级别而不是SP级别查询数据库,那么EF就更适用。
You can still call SPs using Entity Framework, but if your system contains all of its logic inside SPs then I personally wouldn't bother with EF. EF is more for if you simply have a well-defined relational database and you want to query the database at a code level rather than an SP level.


这篇关于我们真的使用Entity Framework吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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