score:0
You should be able to do a projection to an anonimous type.
Then project to your desired type: q.AsEnumerable().Select(...)
Source: stackoverflow.com
Related Query
- What is the proper way to use linq Group operators to Flatten Query Results
- What is the best way to write a two column query in LINQ to Entity 6? And save the results to two different variables?
- What is the proper way to do a C# LINQ Where/Select in C++?
- Is there any way to create a LINQ query as a variable without having the data source (yet)?
- What is the best way to cast each item in a LINQ to Entities query to an interface?
- What is the easiest way to save a LINQ query for later use?
- What is the return type for a anonymous linq query select? What is the best way to send this data back?
- LINQ to Entities query to flatten results and select and group desired information
- Proper way to convert results from the Skip LINQ method
- VB Linq Group Join query FAILS to order the results in descending order
- Is this the correct way to use LINQ Group By?
- Can I Use The Same Linq Code to Query for Different Conditions?
- What SQL query or LINQ code would get the following data?
- How do I use the having clause on an aggregate in a complex group by and join query in LINQ
- LINQ query returns way more results than in the entire database
- LINQ.Where is way slower than LINQ Query, but LINQ Query cannot use on the fly. how to optimize?
- Proper way of passing a parameter to a linq query in the ViewModel
- What's the best way to construct this LINQ query using orderby and group by?
- What is the easiest way to return the first set of linq query properties as optional strings?
- How to assign LINQ Query to a variable and then use it later in the code
- Is there a way to use linq query with DateTime and a string working together in the same request?
- What is the correct way to use Linq to reference the table you instantiate with your ViewModel as a list to generate a list of 'SelectListItems'?
- What does LINQ return when the results are empty
- Is there way to use Distinct in LINQ query syntax?
- What is the easiest way to find the LINQ statement for a SQL statement
- Local sequence cannot be used in LINQ to SQL implementation of query operators except the Contains() operator
- Linq - What is the quickest way to find out deferred execution or not?
- LINQ To SQL exception: Local sequence cannot be used in LINQ to SQL implementation of query operators except the Contains operator
- Linq error generic parameter or the query must use a nullable type
- What is the difference between LINQ query expressions and extension methods
More Query from same tag
- Generically typed expression weirdness
- Substring of a DateTime with Linq to Sql extensions
- Implementing Bind() (SelectMany in LINQ) without yield (in C++)
- Querying JSON with Newtonsoft.Json.Linq in C# Manipulates Date String
- Caching LINQ expressions by equality
- How does LINQ contains work
- Can I can convert this C# code into some Linq code?
- How can I add ISortedEnumerable<XElement> to XElement?
- LINQ Entity Framework 4 SELECT COUNT LEFT OUTER JOIN IN GROUP BY
- c# Lambda Expression built with LinqKit does not compile
- Linq Find Item by Primary Key and display Name(that lives in a different table)
- How to using linq asp.net core
- Merging two classes into a Dictionary using LINQ
- Is there any way to get a JSON object as a list of view models and update records in database with single AJAX call?
- Linq group join
- How to create a dynamic INNER JOIN Multiple Colums
- LINQ join query on Access DB
- What's the hardest or most misunderstood aspect of LINQ?
- I'm getting “DbComparisonExpression requires arguments with comparable type” How do I fix it?
- Timespan to string problem in LINQ query
- LINQ query select entity and its collection query
- linq orderby with condition
- Entity Framework One to Many Relationship Model - How to select column from the child table
- How to evaluate a list of tasks
- c# how to return empty object of user defined type?
- Default value and linq
- Is there a way I can avoid getting another copy of a child data when I include a parent in EF5?
- XDocument.Save() add unwanted namespace on each XElement
- Flatten xml with text and element nodes using LINQ to XML
- C# linq filter array of ints