NHibernate.Lob.AbstractLobType.NullSafeSet C# (CSharp) Method

NullSafeSet() public method

public NullSafeSet ( IDbCommand cmd, object value, int index, ISessionImplementor session ) : void
cmd IDbCommand
value object
index int
session ISessionImplementor
return void
		public override void NullSafeSet(IDbCommand cmd, object value, int index, ISessionImplementor session)
		{
			object data = GetData(value);
			if (data == null)
				((IDataParameter)cmd.Parameters[index]).Value = DBNull.Value;
			else
				((IDataParameter)cmd.Parameters[index]).Value = data;
		}

Same methods

AbstractLobType::NullSafeSet ( IDbCommand cmd, object value, int index, bool settable, ISessionImplementor session ) : void