You must Sign In to post a response.
  • Category: LINQ

    Difference between LINQ Types

    Hellow Dears,
    i read deeply in LinQ articles and i wonder about one thing not got it is what difference between LinQ Types [To SQL/XML - To Object - To DataSet].
    need simple clarify comparison specially for memory view

  • #769234
    The main difference is as you say, LINQ to SQL queries are converted into SQL, Basically I find LINQ to SQL a lot harder to predict than LINQ to Objects. That's not to say it's not useful - it's just a slightly different world. MS has done an amazing job at letting you write queries which very often just do what you expect them to, but it can't do everything.

    var query = from person in people
    where person.Age == person.GetHashCode()
    select person;

    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • Sign In to post your comments