public void AddSearchOption(StackHashSearchOption searchOption) { if (searchOption == null) { throw new ArgumentNullException("searchOption"); } m_SqlSearch.Append(searchOption.ToSqlString(getTableName(searchOption))); }
private static String getTableName(StackHashSearchOption searchOption) { switch (searchOption.ObjectType) { case StackHashObjectType.Product: return(s_ProductTable); case StackHashObjectType.File: return(s_FileTable); case StackHashObjectType.Event: case StackHashObjectType.EventSignature: return(s_EventTable); case StackHashObjectType.EventInfo: return(s_EventInfoTable); case StackHashObjectType.CabInfo: return(s_CabTable); default: throw new InvalidOperationException("Unknown object type"); } }