Click or drag to resize

MapperExtensionsAddColumn Method (SQLInserter, IMapper, String, Object, Boolean)

Add a column to the inserter corresponding to the specified field and using the specified value. If the field does not exist in the mapper then no action is taken.

Namespace:  NetQuarry.Data
Assembly:  EAP.Mapper (in EAP.Mapper.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public static void AddColumn(
	this SQLInserter ins,
	IMapper map,
	string key,
	Object value,
	bool setFieldValue
)

Parameters

ins
Type: NetQuarrySQLInserter
The inserter.
map
Type: NetQuarry.DataIMapper
The mapper.
key
Type: SystemString
The key of the field for which to add a column (using IField.ColumnName).
value
Type: SystemObject
The value to use.
setFieldValue
Type: SystemBoolean
If true, the passed value will be set into the field as well as being used for the inserter.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type SQLInserter. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also