Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie to Linq
Message
From
08/08/2014 11:24:07
John Baird
Coatesville, Pennsylvania, United States
 
General information
Forum:
ASP.NET
Category:
LINQ
Title:
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01605340
Message ID:
01605343
Views:
72
>Hi all just playing around with LINQ and EF and need some help with what I think is a pretty simple query
>
>
>
>int InvoiceAmount = 1000000;
>
>var results =
>                 from cl in Context.clients.ToList().Distinct()
>                 from inv in cl.invoices.ToList().Where(x => x.invoiceamount >= InvoiceAmount)
>                 where cl.id == inv.clientid
>                 select cl;
>
>

I don't think you need the cl.Invoices, just Invoices.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform