在asp.net中退回linq .. [英] Draw back of linq..in asp.net

查看:66
本文介绍了在asp.net中退回linq ..的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们..也许我知道asp.net中linq的缺点.!

HI Friends ..may i know the draw back of linq in asp.net..!

推荐答案

正如John所说,LINQ没有任何根本性的弊端.

附带一提,我会说 LINQ-to-SQL [ ^ ](实体框架等)是它有时可能会导致次优的SQL语句.您只需要在构造LINQ语句时小心,并在分析器中分析结果SQL,以确保为要检索的数据生成了最佳的查询计划.

LINQ并不是问题,就象开发人员使用它一样.
As John says, no fundemental drawbacks to LINQ.

On a side note, I''d say that an issue with LINQ-to-SQL[^] (entity framework etc) is that it can sometimes result in sub-optimal SQL statements. You just need to be careful when constructing your LINQ statements and analyse the resultant SQL in a profiler to ensure you''ve generated the best possible query plan for the data you want to retrieve.

That''s not an problem with LINQ so much as it''s usage by the developer.


没有缺点.如果它适用于手头的任务,请使用它.
There are no drawbacks. If it''s applicable to the task at hand, use it.


转到:
LINQ性能测试:我的第一个Visual Studio 2008项目
我认为使用它没有任何缺点取决于您的数据值是大还是小!
goto:
LINQ Performance Test: My First Visual Studio 2008 Project
I think no drawback use it depend on your data value large or less!


这篇关于在asp.net中退回linq ..的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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