Add a column with a specific value to the INSERT sql

Namespace:  NHibernate.SqlCommand
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
Public Function AddColumn ( _
	columnName As String, _
	val As Object, _
	literalType As ILiteralType _
) As SqlInsertBuilder
C#
public SqlInsertBuilder AddColumn(
	string columnName,
	Object val,
	ILiteralType literalType
)
Visual C++
public:
SqlInsertBuilder^ AddColumn(
	String^ columnName, 
	Object^ val, 
	ILiteralType^ literalType
)
JavaScript
function addColumn(columnName, val, literalType);

Parameters

columnName
Type: System..::.String
The name of the Column to add.
val
Type: System..::.Object
The value to set for the column.
literalType
Type: NHibernate.Type..::.ILiteralType
The NHibernateType to use to convert the value to a sql string.

Return Value

The SqlInsertBuilder.

See Also