Код: Выделить всё
public class GetDistinctManufacturersSpec : Specification
{
public GetDistinctManufacturersSpec(uint companyId)
{
_ = Query.Where(x => x.CompanyId == companyId && !string.IsNullOrEmpty(x.Manufacturer))
_ = Query.Select(x => x.Manufacturer).Distinct();
}
}
Подробнее здесь: https://stackoverflow.com/questions/794 ... ion-in-net
Мобильная версия