Write an instance of the mapped class to a prepared statement. Implementors should handle possibility of null values. A multi-column type should be written to parameters starting from index.

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

Syntax

C#
void NullSafeSet(
	IDbCommand cmd,
	Object value,
	int index
)
Visual Basic
Sub NullSafeSet ( _
	cmd As IDbCommand, _
	value As Object, _
	index As Integer _
)
Visual C++
void NullSafeSet(
	IDbCommand^ cmd, 
	Object^ value, 
	int index
)

Parameters

cmd
Type: System.Data..::..IDbCommand
a IDbCommand
value
Type: System..::..Object
the object to write
index
Type: System..::..Int32
command parameter index

Exceptions

ExceptionCondition
NHibernate..::..HibernateExceptionHibernateException

See Also