예제 #1
0
 public static IQueryable <GroupType> Apply(this IQueryable <GroupType> query, DisplayNameConstraint constraint)
 {
     if (constraint == null)
     {
         return(query);
     }
     return(constraint.ApplyTo(query));
 }
예제 #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));
 }