MapperExtensionsAddColumn Method (SQLUpdater, IMapper, String, Object, Boolean) |
Add a column to the updater 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 SQLUpdater upd,
IMapper map,
string key,
Object value,
bool setFieldValue
)
<ExtensionAttribute>
Public Shared Sub AddColumn (
upd As SQLUpdater,
map As IMapper,
key As String,
value As Object,
setFieldValue As Boolean
)
Parameters
- upd
- Type: NetQuarrySQLUpdater
The updater. - 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 updater.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
SQLUpdater. 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