Symphony Framework
Add Method (WheredB)
Example 
Symphony.dB Namespace > WheredB Class : Add Method
Add additional where clauses prior to executing the DBAccess.Select() method.
Overload List
OverloadDescription
Add the base or first comparison test to the where clause prior to executing the selection of data from the database.  
Add the base or first comparison test to the where clause prior to executing the selection of data from the database.  
Add the base or first comparison test to the where clause prior to executing the selection of data from the database.  
Add an additional comparison test to the where clause prior to executing the selection of data from the database.  
Add an additional comparison test to the where clause prior to executing the selection of data from the database.  
Add an additional comparison test to the where clause prior to executing the selection of data from the database.  
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))
{

}
Symphony.dB.DBAccess itemAccess2 = new DBAccess("ITEM", "DATABASE:DatabaseManager");
WheredB decimalClause = new WheredB();
decimalClause.Add("part_cost", WheredBConditions.GreatThanOrEqualTo, 123.45M);
decimalClause.Add(WheredBConnectors.ConnectOr, "part_cost", WheredBConditions.LessThanOrEqualTo, 5.00M);
foreach (string item in itemAccess2.Select(decimalClause))
{

}
Symphony.dB.DBAccess itemAccess3 = new DBAccess("ITEM", "DATABASE:DatabaseManager");
WheredB integerClause = new WheredB();
integerClause.Add("part_quantity", WheredBConditions.LessThan, 50);
integerClause.Add(WheredBConnectors.ConnectAnd, "part_status", WheredBConditions.EqualTo, 3);
foreach (string item in itemAccess2.Select(integerClause))
{

}
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