Beispiel #1
0
 public static IQueryable <GroupType> Apply(this IQueryable <GroupType> query, DisplayNameConstraint constraint)
 {
     if (constraint == null)
     {
         return(query);
     }
     return(constraint.ApplyTo(query));
 }
Beispiel #2
0
 public static IEnumerable <T> Apply <T> (this IEnumerable <T> query, DisplayNameConstraint constraint)
     where T : MetadataObject
 {
     if (constraint == null)
     {
         return(query);
     }
     return(constraint.ApplyTo(query));
 }