public static IQueryable<PetShop.Core.Data.Account> ByAccountId(this IQueryable<PetShop.Core.Data.Account> queryable, int accountId, params int[] additionalValues) { var accountIdList = new List<int> { accountId }; if (additionalValues != null) accountIdList.AddRange(additionalValues); if (accountIdList.Count == 1) return queryable.ByAccountId(accountIdList[0]); return queryable.ByAccountId(accountIdList); }
public static IQueryable<Petshop.Data.Entities.Account> ByAccountId(this IQueryable<Petshop.Data.Entities.Account> queryable, System.Int32 accountId, params System.Int32[] additionalValues) { var accountIdList = new List<System.Int32> { accountId }; if (additionalValues != null) accountIdList.AddRange(additionalValues); if (accountIdList.Count == 1) return queryable.ByAccountId(accountIdList[0]); return queryable.ByAccountId(accountIdList); }