Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. LINQ
  4. LINQ Scenario

LINQ Scenario

Scheduled Pinned Locked Moved LINQ
csharpdatabaselinqquestion
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kamal Gurnani
    wrote on last edited by
    #1

    In an enterprise application, what are the possible scenario to favour for LINQ to DataSet or LINQ to SQL as against ADO.NET? What would be the real gain of LINQ when used instead of ADO.NET technology?

    E 1 Reply Last reply
    0
    • K Kamal Gurnani

      In an enterprise application, what are the possible scenario to favour for LINQ to DataSet or LINQ to SQL as against ADO.NET? What would be the real gain of LINQ when used instead of ADO.NET technology?

      E Offline
      E Offline
      Eslam Afifi
      wrote on last edited by
      #2

      Using LINQ-to-DataSet is a lot easier than using GetChildRows, GetParentRow, GetParentRows ... methods (calling the relation using its name as string). LINQ-to-DataSet is just doing queries against the old, normal DataSet. LINQ gives you compile-time checking (strongly typed) instead of using SQL strings which the compiler doesn't check.* LINQ saves a lot of time and code (a simple LINQ query can save you for/foreach loops ...).* LINQ makes your code more readable and maintainable.* You can use the same LINQ query with different data sources (assuming they have the same member names or you'll have to do little modifications).* LINQ-to-SQL works only with SQL Server 2005 (and higher) while LINQ-to-Entities (Entity Framework) is more general and works with other databases as well. * Applies to LINQ in general.

      Eslam Afifi

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups