Click or drag to resize

SQLUpserter.AddColumnPerSchema Method

Adds a column to the class if the column is found in the table's schema. The Schema is interrogated from the IDatabase object and for the Table provided in the object's SQLInserter(IDatabase, String) constructor which must have been used in order to use this method.

Namespace:  NetQuarry
Assembly:  EAP.Core (in EAP.Core.dll) Version: 2.0.0.0 (4.6.8.0)
Syntax
public bool AddColumnPerSchema(
	string name,
	Object val,
	UpsertRoles roles,
	SQLColumnFlags flags
)

Parameters

name
Type: System.String
The column name.
val
Type: System.Object
The column's value.
roles
Type: NetQuarry.UpsertRoles
Specifies the part(s) of the upsert to which this column should be added.
flags
Type: NetQuarry.SQLColumnFlags
Flags specifying additional information about the column or how it is to be added.

Return Value

Type: Boolean
True if the columns was added, else false (indicating that the column was not found in the table's schema).
See Also