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. If a property is not settable, skip it and don't increment the 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,
	bool[] settable,
	ISessionImplementor session
)
Visual Basic
Sub NullSafeSet ( _
	cmd As IDbCommand, _
	value As Object, _
	index As Integer, _
	settable As Boolean(), _
	session As ISessionImplementor _
)
Visual C++
void NullSafeSet(
	IDbCommand^ cmd, 
	Object^ value, 
	int index, 
	array<bool>^ settable, 
	ISessionImplementor^ session
)

Parameters

cmd
Type: System.Data..::..IDbCommand

[Missing <param name="cmd"/> documentation for "M:NHibernate.UserTypes.ICompositeUserType.NullSafeSet(System.Data.IDbCommand,System.Object,System.Int32,System.Boolean[],NHibernate.Engine.ISessionImplementor)"]

value
Type: System..::..Object

[Missing <param name="value"/> documentation for "M:NHibernate.UserTypes.ICompositeUserType.NullSafeSet(System.Data.IDbCommand,System.Object,System.Int32,System.Boolean[],NHibernate.Engine.ISessionImplementor)"]

index
Type: System..::..Int32

[Missing <param name="index"/> documentation for "M:NHibernate.UserTypes.ICompositeUserType.NullSafeSet(System.Data.IDbCommand,System.Object,System.Int32,System.Boolean[],NHibernate.Engine.ISessionImplementor)"]

settable
Type: array<System..::..Boolean>[]()[][]

[Missing <param name="settable"/> documentation for "M:NHibernate.UserTypes.ICompositeUserType.NullSafeSet(System.Data.IDbCommand,System.Object,System.Int32,System.Boolean[],NHibernate.Engine.ISessionImplementor)"]

session
Type: NHibernate.Engine..::..ISessionImplementor

[Missing <param name="session"/> documentation for "M:NHibernate.UserTypes.ICompositeUserType.NullSafeSet(System.Data.IDbCommand,System.Object,System.Int32,System.Boolean[],NHibernate.Engine.ISessionImplementor)"]

See Also