Explore LINQ on Experts Exchange

Expert Solutions for Your Tech Problems

LINQLINQ Query

Language Integrated Query (LINQ) is a Microsoft .NET Framework component that adds native data querying capabilities to .NET languages, although po...

Read more
  • 726 Content
  • 215 Contributors

Leading Experts In
LINQ Query
<
Monthly
>

No Top Experts for this time period. Answer questions to earn the title!

Troubleshooting Solution

Type arguments for method cannot be inferred. when ordering query using ToLower

4

Cannot figure out how to preface my orderby column with a ToLower(columnName). I get an error.


The

Troubleshooting Solution

I need to use TWO parameters in this LINQ query. How?

3

This works, but I need a second parameter:


ssql.GetSynergyTable().AsEnumerable().Select(p =>

Troubleshooting Solution

Convert SQL with Joins, GroupBy and counts to Linq

byAlHal2
6

I’m trying to write a Linq statement starting off with SQL with which I’m more familiar.  I’ve

Troubleshooting Solution

Use Linq based on a list

byAlHal2
11

I have a linq clause like this


How would I get it working if I have a list of ShopCodes rather than …
Troubleshooting Solution

I need to add OrderBy()

1

DataRow[] productRows = replenishmentReport.Select($@"WCODE='{wCode}'");


I know I can turn this into

Troubleshooting Solution

I am having trouble with this simple LINQ query

8

I add a column to the table, set the column inside the function CullLotsForProduct(), and see the

Advice Solution

DataTable: I need a LINQ statement which returns as many rows as needed

9

I have a DataTable with an integer field, NUM_BOTTLES. I need to use Select(), or related call,

Troubleshooting Solution

I need LINQ to Sum a column

2

I have a failing line here, but I left it so you can understand what I am trying to do.


           

Troubleshooting Solution

Need help with linq query

1

Hi Experts,

I need to write a linq query to get this output.

Please help! Thanks in advance!


This is my

Troubleshooting Solution

Using LINQ to process XML

byRayT
2

How do you use LINQ Read/Write XML from/to an array?

Research Solution

I need to sum each Int in a list, using LINQ

13

I need to sum each Int in a list, using LINQ


The Row has 4-columns, the last of which is called

Troubleshooting Solution

How do I write my LINQ query using an expression chain?

1

I'm trying to build a LINQ query statement but I want to use the expression chain version of the

Advice Solution

I need to extract formatted data from List&lt;string&gt;()

2

I need to extract formatted data from List<string>()


I only need it to look like the following:


Troubleshooting Solution

How to write a query that is pulling from two separate tables in C# Winforms Program

byBri
2

I've tried a couple different ways to get this query to work but am having trouble getting data from

Advice Solution

Entity Framework versus in-database queries

1

Entity Framework versus in-database queries


I need to understand the reach of the EF library to

Troubleshooting Solution

How to specify an LINQ query using an enum in the DefaultIfEmpty cause?

13

I'm trying to write a LINQ expression in .Net 6 C# where one field is an enum and I need to specify

Troubleshooting Solution

Rewrite this LINQ query

4

I'm getting an error with this LINQ query.

1. This works

2. I changed it to pass in a List


3. This is

Troubleshooting Solution

Sort on Ascending order of transformed field in LINQ with ASP.NET c#

3

I  am  populating a dropdown list with a transformed field for datatextfield with a transformed

Troubleshooting Solution

What is wrong with this linq statement?

2

What is wrong with this linq statement?

This compiles and executes with no errors, but obr is null

Troubleshooting Solution

Converting SQL to LINQ

6

Hello, I need help with a LINQ/C# query.  I have the following SQL query:

 Select
   

Do more with Experts Exchange.


Get Answers

Join a Group Discussion

Collaborate

Monitor your Site

Explore solutions and more