Add a column with a specific value to the INSERT sql

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

Syntax

C#
public SqlInsertBuilder AddColumn(
	string columnName,
	Object val,
	ILiteralType literalType
)
Visual Basic
Public Function AddColumn ( _
	columnName As String, _
	val As Object, _
	literalType As ILiteralType _
) As SqlInsertBuilder
Visual C++
public:
SqlInsertBuilder^ AddColumn(
	String^ columnName, 
	Object^ val, 
	ILiteralType^ 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