public bool MatchesReference(string catalog, string schema, string table)
{
if (schema == null && table == null)
return true;
if (AliasName != null) {
string ts = AliasName.Parent.Name;
string tt = AliasName.Name;
if (schema == null)
return StringCompare(tt, table);
if (StringCompare(tt, table) && StringCompare(ts, schema))
return true;
}
// No way to determine if there is a match
return false;
}