public static IQueryable<Tracker.Data.Entities.Priority> ByName(this IQueryable<Tracker.Data.Entities.Priority> queryable, System.String name, params System.String[] additionalValues) { var nameList = new List<System.String> { name }; if (additionalValues != null) nameList.AddRange(additionalValues); if (nameList.Count == 1) return queryable.ByName(nameList[0]); return queryable.ByName(nameList); }
internal static User ByPrincipal(this IQueryable<User> queryable, IPrincipal principal) { return queryable.ByName(principal.Identity.Name); }
public static IQueryable<PetShop.Core.Data.Supplier> ByName(this IQueryable<PetShop.Core.Data.Supplier> queryable, string name, params string[] additionalValues) { var nameList = new List<string> { name }; if (additionalValues != null) nameList.AddRange(additionalValues); else nameList.Add(null); if (nameList.Count == 1) return queryable.ByName(nameList[0]); return queryable.ByName(nameList); }
public static IQueryable<Petshop.Data.Entities.Category> ByName(this IQueryable<Petshop.Data.Entities.Category> queryable, System.String name, params System.String[] additionalValues) { var nameList = new List<System.String> { name }; if (additionalValues != null) nameList.AddRange(additionalValues); else nameList.Add(null); if (nameList.Count == 1) return queryable.ByName(nameList[0]); return queryable.ByName(nameList); }
public static IQueryable<Tracker.Core.Data.Role> ByName(this IQueryable<Tracker.Core.Data.Role> queryable, string name, params string[] additionalValues) { var nameList = new List<string> { name }; if (additionalValues != null) nameList.AddRange(additionalValues); if (nameList.Count == 1) return queryable.ByName(nameList[0]); return queryable.ByName(nameList); }