public CarColorsQueryController(ICarsContextQuery carsContextQuery)
 {
     _carsContextQuery = carsContextQuery;
 }
示例#2
0
 public CarBrandsQueryController(ICarsContextQuery carsContextQuery)
 {
     _carsContextQuery = carsContextQuery;
 }
示例#3
0
 public CarModelsQueryController(ICarsContextQuery carsContextQuery)
 {
     _carsContextQuery = carsContextQuery;
 }
        public static IEnumerable <CarColor> FindColors(this ICarsContextQuery query)
        {
            IEnumerable <CarColor> colors = query.CarColors.AsNoTracking();

            return(colors);
        }