خرید بک لینک

Vote count: 0

i am trying to select categories that ServiceType inside them contain services that have specific property

var categoryList = await _CategoryRepository.GetAll()
       .Include(C => C.ServiceType)
        .Include(C => C.ServiceType.Select(T => T.Services.Where(S => S.Employees.Any(E => E.UserId == userId))))
       .ToListAsync();

i get the following error he Include path expression must refer to a navigation property defined on the type. Use dotted paths for reference navigation properties and the Select operator for collection navigation properties.

so how can i use use where inside include ?

asked 35 secs ago

برچسب: using ef include, نویسنده: استخدام کار تاريخ: سه شنبه 26 مرداد 1395 ساعت: 15:23

صفحه بندی