Skip to content
.Net DizzyCoding
.Net Question and Answer Documentation
MENU
  • Home

Tag: linq

The || (or) Operator in Linq with C#

By StevePosted on March 28, 2023

Problem : I’m using linq to filter a selection of MessageItems. The method I’ve written accepts a bunch of parameters […]

how can I convert IQueryable to string?

By StevePosted on March 27, 2023August 30, 2022

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#

By StevePosted on March 27, 2023August 31, 2022

Problem : I have a list as follows: {CT, MA, VA, NY} I submit this list to a function and […]

Minimize LINQ string token counter

By StevePosted on March 25, 2023

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

By StevePosted on March 24, 2023

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?

By StevePosted on March 24, 2023

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

By StevePosted on March 23, 2023

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?

By StevePosted on March 22, 2023September 1, 2022

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#

By StevePosted on March 21, 2023

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?

By StevePosted on March 18, 2023September 1, 2022

Problem : In this other question it shows how to get all days of a month. I need the same […]

  • 1
  • 2
  • 3
  • …
  • 37

Recent Posts

  • Encrypt SQLite database in C#
  • BestPractice – Transform first character of a string into lower case
  • How to make streams from BLOBs available in plain old C# objects when using SqlDataReader?
  • Should I catch all possible specific exceptions or just general Exception and wrap it in custom one?
  • What does messageBox.Show() do in order to stop the execution of a UI thread?
  • Changing connection string at runtime in Enterprise Library
  • printing to pdf
  • Difference between Request.Cookies and Response.Cookies
  • Why Finalize method not allowed to override
  • Is a static repository a right way to use NHibernate?
  • How to read a WebClient response after posting data?
  • The || (or) Operator in Linq with C#
  • Graph rendering using 3D acceleration
  • how can I convert IQueryable to string?
  • Does a SharePoint EventReceiver have to be installed in the GAC, and if so do all dependent assemblies have to as well?
Proudly powered by WordPress / Php Dizzy Coding