13
TangChr
7y

LINQ to SQL is for people who can't write actual SQL.

Comments
  • 1
    I think LINQ provides data structures that sql doesn't have.
  • 1
    That's just not fair. What if you present a list of objects and then you only update those marked to be updated? Unless you program every arbitrary change into SQL it can't be aware of things that Linq can at runtime.
  • 1
    Lmao get eeem
  • 2
    who uses linq to sql in .NET nowadays?
  • 3
    Many dot Net developers. LINQ itself is a great tool to filter out large data sets that doesn't have to connect to a Database. It just easier to write for C# developers writing sql queries with LINQ and quicker to debug than just passing a string value then manipulate your data. It's just a helpful tool for dot NET developers.
  • 3
    @Badpointer
    Don't mix LINQ to SQL, LINQ to Entities, EF & Co

    LINQ to SQL and Entity Framework are two different OR Mappers.

    Linq2Sql is dead for many years (we used it like 10 years ago). No one uses Linq2Sql nowadays. Everyone uses Entity Framework or Entity Framework Core (or Nhibernate...whatever).

    Linq to objects is for querying your objects. Linq to entities is for querying your EF model.

    So yeah ... not using LINQ at all would be really stupid. But LINQ != LINQ to SQL ;-)
  • 0
    SQL is for people who can't write LINQ 😀 or are stuck in an unfortunate stack that doesn't let them use LINQ. I would always prefer using some kind of ORM or equivalent to ease the hard coupling with a particular database implementation.
  • 2
    @mzeffect
    As @thoxx said, LINQ isn't the same as LINQ to SQL. I use LINQ to objects/entities and LINQ to XML every day. But I haven't used LINQ to SQL in many years.
  • 0
    @thoxx That's it! Code first, motherfuckers!
Add Comment