var result = input.GroupBy(x => x.F1, (key,g) => g.OrderBy(e => e.F2).First());
More Related Contents:
- Dynamic where clause (OR) in Linq to Entities
- How to create LINQ Expression Tree to select an anonymous type
- Linq-to-Entities Join vs GroupJoin
- ‘Contains()’ workaround using Linq to Entities?
- “A lambda expression with a statement body cannot be converted to an expression tree”
- Bulk-deleting in LINQ to Entities
- The type of one of the expressions in the join clause is incorrect in Entity Framework
- Entity framework left join
- C# – code to order by a property using the property name as a string [duplicate]
- LEFT JOIN in LINQ to entities?
- How to compare only date components from DateTime in EF?
- “The LINQ expression node type ‘Invoke’ is not supported in LINQ to Entities” – stumped!
- Serialize an object to XElement and Deserialize it in memory
- How to tell if an IEnumerable is subject to deferred execution?
- How do I perform Date Comparison in EF query?
- Linq to Entity Join table with multiple OR conditions
- ‘Date’ is not supported in LINQ to Entities. Only initializers, entity members, and entity navigation properties are supported
- String.IsNullOrWhiteSpace in LINQ Expression
- Dynamic query with OR conditions in Entity Framework
- Calling a SQL User-defined function in a LINQ query
- linq to entities vs linq to objects – are they the same?
- The LINQ expression node type ‘ArrayIndex’ is not supported in LINQ to Entities
- How do you construct a LINQ to Entities query to load child objects directly, instead of calling a Reference property or Load()
- Only parameterless constructors and initializers are supported in LINQ to Entities message
- LINQ to Entities group-by failure using .date
- Is Injection Possible through Dynamic LINQ?
- Check if two lists are equal
- linq distinct or group by multiple properties
- LINQ to SQL using GROUP BY and COUNT(DISTINCT)
- Linq Select 5 items per Iteration [duplicate]