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
  • 0 Votes
    4 Posts
    4 Views
    P
    Usually the error message you posted, that is most likely going to be the cause. Can't tell you how many times that's happened to me :-\ "The clue train passed his station without stopping." - John Simmons / outlaw programmer "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
  • Comparing Rows .... AGAIN

    database sales question announcement workspace
    8
    0 Votes
    8 Posts
    2 Views
    H
    Thanx pete i think im ready to start implementing sum Linq stuff into my project now. thanx for all your help bud :) Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.passion != Programming)
  • Concerns regarding Linq [modified]

    csharp database question linq beta-testing
    3
    0 Votes
    3 Posts
    3 Views
    H
    Thanx pete OT: i still have some issues with the comparing of rows, haven't got the GetChangeSet() to work like i need it to... yet :). Still have some stuff im gona try but ill pick your brain tomorrow after exploring it a little more. thanx again Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.passion != Programming)
  • LINQ Select specific records and

    database csharp linq
    5
    0 Votes
    5 Posts
    4 Views
    B
    hi dude, try like this for a specific record. var query1 = (from QuickLink lnk in datb.QuickLinks where lnk.LinkID == checkDataLink.LinkID select new {lnk.linkid,lnk.url} then give like string linkid = query1.Select(a=>a.lnkid).single(); now linkid is taken explicitly T.Balaji
  • Comparing rows with Linq?

    database csharp linq question announcement
    5
    0 Votes
    5 Posts
    4 Views
    H
    im no expert... yet :) But i get the basic concept. played around with Linq to objects today and read through Linq to SQL and Linq to XML in "Pro C# 2008 and .Net 3.5 Platform". gona do some practical Linq to SQL tomorow morning before i start implementing it in my project :) Harvey Saayman - South Africa Junior Developer .Net, C#, SQL you.suck = (you.passion != Programming)
  • 0 Votes
    4 Posts
    2 Views
    J
    I can't determine your problem because I don't know what your code does regarding the And stuff. You'll need to post your code.
  • using Expressions [modified]

    linq database functional help question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • 0 Votes
    3 Posts
    2 Views
    F
    Thanks for your encouragement! :) Fakher Halim
  • searching big text

    question csharp html linq com
    9
    0 Votes
    9 Posts
    4 Views
    J
    You can do searching over big strings using LINQ, yes, since a string could be broken up into a collection of words, and LINQ works on collections of any type. However, if you have a lot of big strings, your search might take awhile. Here at work we use the free and open source Lucene.NET to index and search our big texts. With Lucene.NET, you can do queries over your text using AND, OR, wildcard, etc. operators, and it all performs very, very quickly. Does that answer your question? I guess I'm not sure what your question is, exactly. Maybe you want to build an expression out of your SearchWord elements and use the resulting expression as the predicate criteria over your string - is that what you want to do?
  • 0 Votes
    7 Posts
    4 Views
    P
    If the rest of my code is using Linq, I'd use FirstOrDefault just to keep it consistent, Deja View - the feeling that you've seen this post before. My blog | My articles
  • Annotations method ?

    csharp linq xml question
    2
    0 Votes
    2 Posts
    4 Views
    J
    According to this MSDN description of Linq to XML annotations[^],annotations let you "associate any object of any type with any XML component in an XML tree."
  • How can we read XML file , line by line ?

    csharp linq xml help question
    4
    0 Votes
    4 Posts
    2 Views
    J
    Have a look at SecurityElement.Escape[^] method. Since you want to be working with the decoded XML special characters in the values of the XML, you might as well just use an XDoc. Here's how you can get elements in the XML by string, with the decoded special characters: var doc = XDocument.Parse( YOUR XML GOES HERE ); var decodedElements = from element in doc.Elements()                       select element.ToString(); Alternately, and I don't know if this covers all your bases, you could look at System.Web.HttpUtility.HtmlDecode. Tech, life, family, faith: Give me a visit. I'm currently blogging about: Upon this disciple I'll build my new religion? The apostle Paul, modernly speaking: Epistles of Paul Judah Himango
  • 0 Votes
    2 Posts
    2 Views
    M
    Datacontext constructor having option to pass connectionstring. this is one way. qryGenDataContext qryGen = new qryGenDataContext(connectionstring); Have A Nice Day! Murali.M Blog
  • Except

    help linq csharp com
    5
    0 Votes
    5 Posts
    3 Views
    M
    Retriving Two columns on RESV_ID and RESV_NUMBER. RESV_ID in integer and RESV_NUMBER is varchar(50). Thanks Have A Nice Day! Murali.M Blog
  • LinQ to SPROC

    question csharp database linq workspace
    3
    0 Votes
    3 Posts
    3 Views
    J
    You can define overloads which simply pass in null[^] for you.
  • Dynamic SQL (sql: EXEC([query]) & Linq problem

    database csharp linq regex help
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • binding derived columns in grid using LINQ

    csharp css database wpf wcf
    2
    0 Votes
    2 Posts
    4 Views
    B
    hi all i got the solution for this 1 T.Balaji
  • SQLMetal and Enum Types

    database help tutorial question
    1
    0 Votes
    1 Posts
    1 Views
    No one has replied
  • Binding checkbox in grid with true/false from backend

    database csharp css wpf wcf
    1
    0 Votes
    1 Posts
    2 Views
    No one has replied
  • Linq to xml

    csharp linq xml
    2
    0 Votes
    2 Posts
    2 Views
    U
    I got the answer. By refering the following link http://crawlmsdn.microsoft.com/en-us/library/bb387032.aspx[^]