Symphony Framework
Add(String,WheredBConditions,String) Method
Example 
Symphony.dB Namespace > WheredB Class > Add Method : Add(String,WheredBConditions,String) Method
The name of the column/field to test against.
The condition to apply to the test.
The test value as a string.
Add the base or first comparison test to the where clause prior to executing the selection of data from the database.
Syntax

Parameters

fieldName
The name of the column/field to test against.
condition
The condition to apply to the test.
testValue
The test value as a string.
Remarks
This method allows you to define the primary selection criteria. To assign additional selection criteria use the Add(WheredBConnectors,String,WheredBConditions,String) overload.
Example
Symphony.dB.DBAccess itemAccess1 = new DBAccess("ITEM", "DATABASE:DatabaseManager");
WheredB stringClause = new WheredB();
stringClause.Add("part_technical", WheredBConditions.Contains, "ISO 23345");
stringClause.Add(WheredBConnectors.ConnectAnd, "part_unit", WheredBConditions.EqualTo, "Ltr");
foreach (string item in itemAccess1.Select(stringClause))
{

}
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

WheredB Class
WheredB Members
Overload List