BigJ:
I love the idea, and I'd like to implement it. However, I'd also love the option to exclude the quotes, if necessary. Or, heck, add another option to include BOTH types of searches. Search by combining the words and separating them as well.
Also, I'm noticing that the contains parameters in the WHERE clause are filtered with AND. How about an option to do with OR and AND/OR?
... just throwing some ideas out...
Here's a sample of the new SqlFilterType Enum (if the name is appropriate...)
/// <summary>
/// Enumeration of SQL Filter Types.
/// </summary>
public enum SqlFilterType
{
/// <summary>
/// Represents an Individual Word filter
/// </summary>
/// <example>(if using SqlComparisonType.Contains) CompanyName LIKE "%Acme" AND CompanyName LIKE "Company%"</example>
Word,
/// <summary>
/// Represents a Phrase filter
/// </summary>
/// <example>(if using SqlComparisonType.Contains) CompanyName LIKE "%Acme Company%"</example>
Phrase
}
I'm outside ur box, shiftin' ur paradigm.