class Customer { string Name {get;set;} IEnumerable<CustomProperty> CustomProps {get;set;} } class CustomProperty { string Name {get;set;} string Value {get;set;} }
_dbContext.Customers .Include(x=>CustomProps) .OrderBy(x => x.CustomProps.Where(x => x.Name == "Color") .SelectMany(x => x.Value)
The LINQ expression 'x => x.Value' could not be translated.
.OrderBy(x => x.CustomProps.Where(p => p.Name == "Color").Select(p => p.Value).FirstOrDefault())
.OrderBy(x => x.CustomProps.Where(p => p.Name == "Color").Select(p => p.Value).Min())
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)