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