public static IQueryable<Petshop.Data.Entities.Profile> ByUniqueID(this IQueryable<Petshop.Data.Entities.Profile> queryable, System.Int32 uniqueID, params System.Int32[] additionalValues) { var uniqueIDList = new List<System.Int32> { uniqueID }; if (additionalValues != null) uniqueIDList.AddRange(additionalValues); if (uniqueIDList.Count == 1) return queryable.ByUniqueID(uniqueIDList[0]); return queryable.ByUniqueID(uniqueIDList); }
public static IQueryable<PetShop.Core.Data.Account> ByUniqueID(this IQueryable<PetShop.Core.Data.Account> queryable, int uniqueID, params int[] additionalValues) { var uniqueIDList = new List<int> { uniqueID }; if (additionalValues != null) uniqueIDList.AddRange(additionalValues); if (uniqueIDList.Count == 1) return queryable.ByUniqueID(uniqueIDList[0]); return queryable.ByUniqueID(uniqueIDList); }
//Add query extension methods here. public static IQueryable<Cart> GetCart(this IQueryable<PetShop.Core.Data.Cart> queryable, int uniqueID, bool isShoppingCart) { return queryable.ByUniqueID(uniqueID).ByIsShoppingCart(isShoppingCart); }