Home

Welcome to LINQ Tutorial!

This website is dedicated to LINQ Method examples using C# .NET:

// Get 5 customers with most orders from USA

List<Customer> customers =
    context.Customers
        .Where(c => c.Country == "USA")
        .OrderByDescending(c => c.Orders.Count)
        .Take(5)
        .ToList();

Please continue to different sections of this LINQ tutorial to see specific examples.

All examples are prepared using Northwind database.

Happy learning!


Should you have any questions or found a mistake that needs correcting, feel free to send an email to: info [at] linqtutorial [dot] info


Advertisements :