protected bool HasGroups()
 {
     if (BadGroups.IsEmpty() && GoodGroups.IsEmpty())
     {
         return(false);
     }
     else
     {
         return(true);
     }
 }
 protected bool IsGoodGroup(Type theType)
 {
     if (GoodGroups.IsEmpty())
     {
         return(false);
     }
     else if (Attribute.IsDefined(theType, typeof(ValidationGroupAttribute)))
     {
         ValidationGroupAttribute ValidationGroup = (ValidationGroupAttribute)Attribute.GetCustomAttribute(theType, typeof(ValidationGroupAttribute));
         if (ValidationGroup.Groups.Contains(from itm in GoodGroups
                                             select itm.Trim().ToUpper()))
         {
             return(true);
         }
     }
     return(false);
 }
 public BasicDatabaseValidationDictionary()
 {
     GoodGroups.Add(Database_Validation);
 }