public static IQueryable<PetShop.Core.Data.Order> ByLocale(this IQueryable<PetShop.Core.Data.Order> queryable, string locale, params string[] additionalValues) { var localeList = new List<string> { locale }; if (additionalValues != null) localeList.AddRange(additionalValues); if (localeList.Count == 1) return queryable.ByLocale(localeList[0]); return queryable.ByLocale(localeList); }
public static IQueryable<Petshop.Data.Entities.Order> ByLocale(this IQueryable<Petshop.Data.Entities.Order> queryable, System.String locale, params System.String[] additionalValues) { var localeList = new List<System.String> { locale }; if (additionalValues != null) localeList.AddRange(additionalValues); if (localeList.Count == 1) return queryable.ByLocale(localeList[0]); return queryable.ByLocale(localeList); }