About 50 results
Open links in new tab
  1. What is the syntax for an inner join in LINQ to SQL?

    Sep 1, 2008 · I'm writing a LINQ to SQL statement, and I'm after the standard syntax for a normal inner join with an ON clause in C#. How do you represent the following in LINQ to SQL: select …

  2. 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 checks a …

  3. Linq version of SQL "IN" statement - Stack Overflow

    This Linq query is the same as the following SQL: SELECT Items.* FROM TagMaps INNER JOIN Items ON Item.ItemId = TagMap.ItemId WHERE TagMaps.TagId IN (12,32,24) Linq takes care of the …

  4. What is the difference between "LINQ to Entities", "LINQ to SQL" and ...

    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. Linq-to-Entities …

  5. c# - Get SQL query from LINQ to SQL? - Stack Overflow

    Aug 14, 2013 · I have a query which I am passing byte[] as a parameter. I am trying to get the SQL query out of it and run that query in management studio to debug. How can I extract the SQL …

  6. LINQ Where with AND OR condition - Stack Overflow

    Jan 11, 2016 · LINQ Where with AND OR condition Asked 16 years, 3 months ago Modified 6 years, 7 months ago Viewed 200k times

  7. 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.

  8. c# - LIKE operator in LINQ - Stack Overflow

    Mar 21, 2011 · Is there any way to compare strings in a C# LINQ expression similar to SQL's LIKE operator? Suppose I have a string list. On this list I want to search a string. In SQL, I could write: …

  9. How to view LINQ Generated SQL statements? - Stack Overflow

    Feb 4, 2011 · If you use SQL profiler, to ensure capture of all LINQ queries from your VS debug session, use SQL Profiler 'RPC Completed' and 'SQL:BatchCompleted' events.

  10. SQL to LINQ Tool - Stack Overflow

    Nov 18, 2008 · Is there a tool out there which can convert SQL syntax to LINQ syntax? I just want to rewrite basic queries with join, etc., to LINQ. It would save me a lot of time.