Problem : I’m using linq to filter a selection of MessageItems. The method I’ve written accepts a bunch of parameters […]
Tag: linq
how can I convert IQueryable to string?
Problem : I do a sql query which returns a string – service name. this is the query: IQueryable<string> query […]
Rearrange a list based on given order in c#
Problem : I have a list as follows: {CT, MA, VA, NY} I submit this list to a function and […]
Minimize LINQ string token counter
Problem : Followup on answer to an earlier question. Is there a way to further reduce this, avoiding the external […]
“Cannot call methods on DateTime”, and other limitations
Problem : Does anyone know of a definitive list of LINQ to SQL query limitations that are not trapped at […]
Should the order of LINQ query clauses affect Entity Framework performance?
Problem : I’m using Entity Framework (code first) and finding the order I specify clauses in my LINQ queries is […]
linq select items from child collection
Problem : Below are my classes. I have a product that contains list of days. Each day has a city […]
How do I resolve multiple linq queries in one operation without using a base query?
Problem : I have 14 LINQ queries to resolve in one method. None of them have a base query that […]
dynamically adding controls under loop in C#
Problem : I am developing a windows application where I want to create some controls dynamically inside a loop. The […]
How to get a list of week days in a month?
Problem : In this other question it shows how to get all days of a month. I need the same […]