Exemplo n.º 1
0
 internal override void CheckCanAddToCollection(ConstraintCollection constraints)
 {
     if (Table != constraints.Table)
     {
         throw ExceptionBuilder.ConstraintAddFailed(constraints.Table);
     }
     if (Table.Locale.LCID != RelatedTable.Locale.LCID || Table.CaseSensitive != RelatedTable.CaseSensitive)
     {
         throw ExceptionBuilder.CaseLocaleMismatch();
     }
 }