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. Why Linq to SQL?

Why Linq to SQL?

Scheduled Pinned Locked Moved LINQ
databasecsharplinqcomquestion
2 Posts 2 Posters 4 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.
  • T Offline
    T Offline
    Tad McClellan
    wrote on last edited by
    #1

    Just getting back into some of the newer stuff from MS. I can't figure out why LINQ to SQL exists. I always thought query's should run in the DB in stored procs and not be in code. Essentually LINQ to SQL is a hard coded SQL Query. I thought this was bad form. What am I missing?

    TadMcClellan.Com

    N 1 Reply Last reply
    0
    • T Tad McClellan

      Just getting back into some of the newer stuff from MS. I can't figure out why LINQ to SQL exists. I always thought query's should run in the DB in stored procs and not be in code. Essentually LINQ to SQL is a hard coded SQL Query. I thought this was bad form. What am I missing?

      TadMcClellan.Com

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Linq to SQL is a ORM, Object Relational Mapper, tool. It is more than just a way to run queries. It removes the need for the developer to hand create entities, execute queries and map the result sets to those entities. It gives the ability to track changes when objects have been modified. Plus a host of other things. You can still use stored procs with Linq to SQL.


      I know the language. I've read a book. - _Madmatt

      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