3 ms·
By LINQ query I mean LINQ to SQL, not the basic LINQ collections functionality (the equivalent in Scala being for comprehensions, BTW). If you have an example
by virtualwhys 10y ago
By LINQ query I mean LINQ to SQL, not the basic LINQ collections functionality (the equivalent in Scala being for comprehensions, BTW).
If you have an example of .NET based query composition to share I'd like to see it; last I checked there was no such functionality available.
- MichaelGG 10y agoLINQ to SQL ends up creating an expression on IQueryable. You can build this expression up any way you want, including in bits and pieces. You can tack on Wheres and Selects any time you like. It's more composable than pain text SQL since the parts can go in any order. It's only after you force it to materialize (I.e. call ToList) that you can't further "compose" it.