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. Web Development
  3. ASP.NET
  4. Linq to Entities vs Linq to SQL

Linq to Entities vs Linq to SQL

Scheduled Pinned Locked Moved ASP.NET
csharpdatabasevisual-studiolinqquestion
2 Posts 2 Posters 0 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.
  • S Offline
    S Offline
    Swiftain
    wrote on last edited by
    #1

    Hi, Is there any Linq to entities equivalent for DeleteAllOnSubmit?? If not, then is Linq to entities really better than linq to sql? If Yes, then why? Thanks

    N 1 Reply Last reply
    0
    • S Swiftain

      Hi, Is there any Linq to entities equivalent for DeleteAllOnSubmit?? If not, then is Linq to entities really better than linq to sql? If Yes, then why? Thanks

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

      There is no comparison between the two. Linq to SQL is for, well, SQL. Linq to Entities can be used for a variety of objects. DeleteAllOnSubmit would not make since for this because the entities could be from any type of collection; a list of strings, a list of WMI objects, etc. where delete has no meaning, or a very different one.


      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