About 1,830,000 results
Open links in new tab
  1. Linq to SQL: WHERE IN statement - Stack Overflow

    Based on the above (hypothetical) SQL schema and data, I want to use Linq to SQL to get all results where the name is in values of an array. string[] names = {"John", "Cassandra", "Sarah"};

  2. LINQ custom OR operator to aggregate on SQL server

    Aggregate is not supported by linq-to-entities (regardless of what function you pass in). Remember that SQL is set-based, so custom aggregations are often very difficult to translate …

  3. asp.net - LINQ to SQL - How to select specific columns and return ...

    I'm trying to use LINQ to SQL to select a few specific columns from a table and return the result as a strongly typed list of objects. For Example: var result = (from a in DataContext.Persons ...

  4. Linq 2 Sql DateTime format to string yyyy-MM-dd

    Linq 2 Sql DateTime format to string yyyy-MM-dd Asked 15 years, 7 months ago Modified 2 years, 5 months ago Viewed 54k times

  5. Linq to SQL how to do "where [column] in (list of values)"

    Aug 29, 2015 · The problem being, that I can't dynamically generate a list of "OR" clauses for linq to sql, because they are set at compile time. How does one accomplish a where clause that …

  6. How to do Select All(*) in linq to sql - Stack Overflow

    How do you select all rows when doing linq to sql? Select * From TableA In both query syntax and method syntax please.

  7. What is the difference between "LINQ to Entities", "LINQ to SQL" …

    Linq-to-SQL is Microsoft's first attempt at an ORM - Object-Relational Mapper. It supports SQL Server only. It's a mapping technology to map SQL Server database tables to .NET objects. …

  8. .net - Linq to Entities - SQL "IN" clause - Stack Overflow

    In T-SQL you could have a query like: SELECT * FROM Users WHERE User_Rights IN ("Admin", "User", "Limited") How would you replicate that in a LINQ to Entities query? Is it even possible?

  9. .net - Entity Framework vs LINQ to SQL - Stack Overflow

    496 LINQ to SQL only supports 1 to 1 mapping of database tables, views, sprocs and functions available in Microsoft SQL Server. It's a great API to use for quick data access construction to …

  10. Linq to SQL: how to aggregate without a group by?

    Aug 26, 2013 · Linq to SQL: how to aggregate without a group by? Asked 16 years ago Modified 1 year ago Viewed 21k times