This topic has been archived. It cannot be replied.
-
工作学习 / 学科技术讨论 / 正在用LINQ的,或者正在学LINQ的,推荐一款小软件LINQPad,附加很多例子,很实用。如果你用LINQ to SQL,想分析LINQ最终生成的SQL代码,用LINQPad轻松得到
-binghongcha76(一只大猫);
2009-2-19
(#5059475@0)
-
谢谢大猫,看样子不错,明天就试试。
-mfcguy();
2009-2-19
(#5062043@0)
-
Don’t get any its advantage yet, I mean any LINQ query can be written in VS. Why use the separated tool?Should user copy & paste the queries to VS or what else? I get lost.
-deep_blue(BLUE);
2009-2-20
{68}
(#5062405@0)
-
如果学习Linq,这个工具比VS更直观、友好一些,就凭那么多.Net专业人士的 Recommendations 也是值得一看的。对于高手来说当然可以不屑一顾,^_^
-binghongcha76(一只大猫);
2009-2-20
(#5062457@0)
-
In my personal experience, LINQ is pretty similar to SQL. There isn’t much complicated syntax. The complicated results can only be done by experiences rather than any tools.
-deep_blue(BLUE);
2009-2-20
(#5062570@0)
-
Yes, for a complex SQL, there are many select groups, inner join, left join, join inside another join, case statements, change column to different name, etc. WRITING SQL is challenging and fun.
-nicetomeetyou(_);
2009-2-20
(#5062605@0)
-
I agree. BTW, I was wondering when you become more and more technique oriented?
-deep_blue(BLUE);
2009-2-20
(#5062658@0)
-
Funny question! Are you one of those tech guru guys who believe I am not technical oriented, and don't know VERSION CONTROL at all? What a Rolia world.
-nicetomeetyou(_);
2009-2-20
(#5062668@0)
-
Too abashed. my level is only to use some very simple one like VSS. it's not funny at all.
-deep_blue(BLUE);
2009-2-20
(#5062735@0)
-
Are you using SVN in Eclipse, or Jdeveloper? Or !Ciao in Notes Domino? Version control is just an application of database and user /role control.
-nicetomeetyou(_);
2009-2-20
(#5062748@0)
-
Pay attention to what BLUE said if you reply to him, okay?
-anthonylo2008(anthonylo);
2009-2-20
(#5062895@0)
-
I think LINQ 's syntex is not much same as sql, for example, outer left/right join, group, select ... in sub-sql, and it makes not only design time headache, but difficult to debug(sql can be simply copy into studio management and run script).
-mfcguy();
2009-2-21
(#5064489@0)
-
Did I say that LINQ and SQL have same syntax?
-deep_blue(BLUE);
2009-2-21
{1655}
(#5064849@0)
-
u r the man! the sub-query linq example looks useful to me, thanks.
-mfcguy();
2009-2-22
(#5067840@0)
-
嗯,哥们提到到lazy operators确实令我很头疼,debug的时候经常不能hit设置的断点,看不到执行的步骤。俺经常的办法是用Console.WriteLine(解决,调试通过以后把Console.Write删掉。设置SubQuery是个好方法,就是太费脑子了.... ^_^
-binghongcha76(一只大猫);
2009-2-23
(#5068882@0)
-
If executing time of query doesn’t matter, why don’t use greedy operators, e. g. .ToList<Object>() or .ToArray<Object>()?
-deep_blue(BLUE);
2009-2-23
(#5069401@0)
-
ToList()或者ToArray()好象并不好使....
-binghongcha76(一只大猫);
2009-2-23
{753}
(#5069774@0)
-
No any problem to hit BP, no matter using lazy or greedy opeartor!Either following case to to hit bolded line. You might need reinstall your VS.
string[] ss = new string[] {"kk","pppp","aaa" };
string[] result = ss.Where(s => s.Length > 2).ToArray();
Console.WriteLine("result");
string[] ss = new string[] {"kk","pppp","aaa" };
var = ss.Where(s => s.Length > 2);
Console.WriteLine("result");
-deep_blue(BLUE);
2009-2-23
{410}
(#5069831@0)
-
Sorry,可能是我以前的语言表达不准确,我碰到的和Lazy Operator有关的问题是:
-binghongcha76(一只大猫);
2009-2-24
{780}
(#5072000@0)
-
Try Watch window: Debug -> QuickWatch…
-deep_blue(BLUE);
2009-2-24
(#5072567@0)
-
Sub-query is not greedy operator. It doesn’t help you for the problem you mentioned.
-deep_blue(BLUE);
2009-2-23
(#5069496@0)
-
BTW, PLINQ may have little more options and changes in order to improve performance. You might take more attention to it.
-deep_blue(BLUE);
2009-2-20
(#5062687@0)
-
嗯,刚刚下载了2008 6月的CPT版,大概看了一下,我的天哪!那性能提升不是一点半点,太可怕了,多核的威力..... 估计微软肯定会在.net 4.0中将集成这种Parallel Extensions。多谢兄台介绍
-binghongcha76(一只大猫);
2009-2-25
(#5074285@0)
-
tried. Seems still need improve.
-tonyhao(tonyhao);
2009-2-20
(#5063428@0)
-
Great. For my daily work, I use some tools to debug or speed up. Some of them are free. Finding the right tool is a fun and rewarding process.
-mscrm(沉稳);
2009-2-23
(#5069064@0)