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
  • 709 Content
  • 211 Contributors

Leading Experts In
LINQ Query
<
Monthly
>

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

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

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 type cast in MVC 4?

byakohan
61
This is the case I'm facing:

I do have 3 controllers as following: a) MetricController b) …
Troubleshooting Solution

How can this FindAll query be reworked to return the combined list of qualifying objects?

1
In this simple example  below I have some nested lists and I want the root to be able to return a …
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

Converting SQL to LINQ

6

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

 Select
   

Troubleshooting Solution

C# Linq to Get XML

38
If I have the below XML.  I want to do 2 things.

First get everything between <key></key> so I …
Troubleshooting Solution

Retrieve related data to Razor Page

byBrian
10

I'm having trouble retrieving the StateInt value from the States Table based on the value stored in

Troubleshooting Solution

Help with LINQ query

byLee
2

I have a list of objects called VendorInvoiceList. It contains 4 properties.
VendorId, InvoiceNumber,

Troubleshooting Solution

LINQ used for Searching database records.  - please help with join and refactoring for performance

27

Please assist with refactoring this LINQ method along with adding a join to it.


This method allow

Troubleshooting Solution

Query XML Using LINQ

byRayT
5

How do I write a LINQ query to output the RootFolder and AccessLevel when a specific password is the

Troubleshooting Solution

Help with modifying LINQ query

9
I need to filter this from the given table as its returning too many rows.   THis linq query is …
Troubleshooting Solution

LINQ - .net core 5.0 - Adding join and refactoring for complexity and performance

17

Please help to add a join to this LINQ statement along with any refactoring that would be writing

Troubleshooting Solution

C# Delete values from LIst<string> verifying against Enum

19
I am writing an app that will get a list of directories and files.  I am populating a List<string> …
Troubleshooting Solution

Linq crashes with contains

byAllan
10
Hi Experts!

Need help with the following Iinq query. The issue is that the query causes a …
Troubleshooting Solution

Linq Data Range

bylulu50
21
Hi,

I need your help please!!!

 I want to say if the user enter in GroupTxt a range from 10 …
Troubleshooting Solution

SqlFunctions.DateAdd("yyyy", u.JoinedYear - 1900, 0)

byAllan
18
Hi Experts!

Have this sql that tells me the years the user being a member:
SELECT …
Troubleshooting Solution

LINQ Query returning a null value for a System.Decimal type.

22
Because there is no data available to sum, this code is producing a null value and throwing an …
Troubleshooting Solution

Getting multiple columns using LINQ

16
Hi,

I added a new employee to SQL table.
Add(3, "Issy", "Holm");
And I added this to the List.…

Do more with Experts Exchange.


Get Answers

Join a Group Discussion

Collaborate

Monitor your Site

Explore solutions and more