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