RingSoft.DbLookup.Controls.WPF.Properties Namespace
RingSoft.DbLookup.QueryBuilder Namespace
RingSoft.DbMaintenance Namespace

SelectQuery..::..AddWhereItem Method (QueryTable, String, Conditions, String, ValueTypes, DbDateTypes)

Creates a where item object and adds it to the WhereItems list.

Namespace:  RingSoft.DbLookup.QueryBuilder
Assembly:  RingSoft.DbLookup (in RingSoft.DbLookup.dll)

Syntax


public WhereItem AddWhereItem(
	QueryTable table,
	string fieldName,
	Conditions condition,
	string value,
	ValueTypes type,
	DbDateTypes dateType
)
Public Function AddWhereItem ( _
	table As QueryTable, _
	fieldName As String, _
	condition As Conditions, _
	value As String, _
	type As ValueTypes, _
	dateType As DbDateTypes _
) As WhereItem
public:
WhereItem^ AddWhereItem(
	QueryTable^ table, 
	String^ fieldName, 
	Conditions^ condition, 
	String^ value, 
	ValueTypes^ type, 
	DbDateTypes^ dateType
)

Parameters

table
Type: RingSoft.DbLookup.QueryBuilder..::..QueryTable
The table.
fieldName
Type: String
Name of the field.
condition
Type: RingSoft.DbLookup.QueryBuilder..::..Conditions
The condition.
value
Type: String
The value.
type
Type: RingSoft.DbLookup.QueryBuilder..::..ValueTypes
The value type.
dateType
Type: RingSoft.DbLookup.QueryBuilder..::..DbDateTypes
The date value type if ValueType is a DateTime.

Return Value

The where item object that was created for further configuration.

Exceptions


ExceptionCondition
ArgumentException