Skip to content

LINQ

LINQ (all flavours)

This category can be followed from the open social web via the handle linq-e04cf296@forum.codeproject.com

783 Topics 2.8k Posts
  • compiler

    2
    0 Votes
    2 Posts
    0 Views
    J
    Your question is vague. I assume you mean, "How can I look at the results of a LINQ query in the "watch" window in Visual Studio?" For that, add the LINQ query field to the watch window, then call .ToArray() on it. You should be able now to expand the field. Visual Studio may also give you the option to "evaluate results", which will iterate over the IEnumerable results and display them in the debugger. Religiously blogging on the intarwebs since the early 21st century: Kineti L'Tziyon Judah Himango
  • Eager-Loading not working

    2
    0 Votes
    2 Posts
    0 Views
    T
    Hi Dont tell like .include("All.b"); instead tell like .include("b"); This will fix your problem. Thanks , Thani
  • Count taking too long in nested query

    2
    0 Votes
    2 Posts
    1 Views
    T
    Hi, Your query should be like SELECT VALUE TOP(20) sSet FROM EveryThing as sSet where sSet.SPERID LIKE '%1020%' AND exists(SELECT VALUE COUNT(A.ADR) FROM sSet.SADDR AS A WHERE A.ADR LIKE '%BOR%')"; If you put the coutn keywork outside then for each sset all the "A" records will be fetched . This will impact performace. Thanks, Thani
  • Navigation Property Grief

    wpf csharp css wcf
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • LINQ help!!!

    csharp database linq help question
    5
    0 Votes
    5 Posts
    2 Views
    A
    You will be happier in the long run if you do Select New With {c, cv}
  • Linq to XML programming

    csharp database linq xml announcement
    8
    0 Votes
    8 Posts
    0 Views
    L
    JimBob SquarePants wrote: Hopefully you'll read this. I did. Thanks for the update. I am glad things are moving along for you now.
  • Coding standards

    2
    0 Votes
    2 Posts
    0 Views
    0
    Here are Microsoft's most recent VB coding conventions. Brad Abrams also published the C# coding guidelines
  • Calculating the time of a LINQ query ?

    csharp database linq tutorial question
    7
    0 Votes
    7 Posts
    0 Views
    A
    If you are interested in digging into the performance of the LINQ query, you can use the CLR profiler. See these interesting links Link 1[^] and Link 2[^]
  • Displaying data from a flexible database structure

    question database
    1
    0 Votes
    1 Posts
    0 Views
    No one has replied
  • 0 Votes
    2 Posts
    0 Views
    A
    I think its because you are not specifying the time frame. I think the problem with time part. check it out by giving the time as well and see if the problem still persist. Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions Create .NET Templates
  • Disassemble Linq query

    csharp database linq help question
    18
    0 Votes
    18 Posts
    0 Views
    J
    Actually, I made a small mistake in my previous comment. What the C# compiler translates your code to isn't specific to itself...its specific to IL. For example, IL supports the fault block in a try/catch statement, but normal C# code does not. Reflector doesn't really have an option when it encounters a fault in IL...so it puts a fault {} block in the C# code it generates.
  • 0 Votes
    3 Posts
    0 Views
    P
    Hi, I did, As suggested by you. But, I am getting the same crash for the following query Dim query as integer= (From P In objbase.GetTable(Of table)() Where P.ID1 = Id1 And P.CID1 = CId1 Select P.Fee).SingleOrDefault
  • Trying to use ToDictionary<>...

    linq csharp database functional question
    4
    0 Votes
    4 Posts
    0 Views
    A
    Oh yes ... sorry for the spelling mistakes I made... . ;P ;P Abhishek Sur My Latest Articles Basics on LINQ and Lambda Expressions Create .NET Templates
  • 0 Votes
    5 Posts
    0 Views
    J
    Why dont you use this query? var result = from t in query Select new("id"); Thats it,. I might have mistaken in synatx near new . . .But its just something like that. . And you will get only one column . .
  • LINQ + Combobox

    csharp linq sales question
    3
    0 Votes
    3 Posts
    0 Views
    J
    All you need is databinding. . Hope you know the databinding using LINQ. if not tell me i can explain you a bit. .
  • LINQ is free?

    csharp linq question
    5
    0 Votes
    5 Posts
    0 Views
    R
    My bad then, good to know, altough I'm not using express editions. :)
  • LINQ to SQL vs ADO.NET

    csharp question database visual-studio linq
    3
    0 Votes
    3 Posts
    0 Views
    M
    As my experienced , LINQ is easier than ADO.NET. Also, if you learn LINQ you can work with any Data Bases ( like SQL, XML, ... ) with the same query syntax.
  • 0 Votes
    7 Posts
    1 Views
    S
    Is your GUID column set as the "row guid column"? If not, do so, then the GUID will be auto generated and LINQToSQL will function with IsDBGenerated = true.
  • select detail record from gridview using LINQ

    question csharp css linq
    2
    0 Votes
    2 Posts
    0 Views
    S
    Everything you need to know is in Scott Gutheries Excellent LinqToSql series. Part 5 covers the question you ask http://weblogs.asp.net/scottgu/archive/2007/07/16/linq-to-sql-part-5-binding-ui-using-the-asp-linqdatasource-control.aspx[^] Cheers Shawty
  • Detect a special node in a XML file !

    algorithms xml tutorial question
    4
    0 Votes
    4 Posts
    0 Views
    H
    I assume (as you have not explained) that you want to fix the sequence so that it is correct. ID="15" is out-of-sequence but then so are all the remaining items after it. Unless your example is also wrong. Please explain your objectives. 'Howard