Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.DomainModel Namespace / EnumAsInt<T> Class / NullSafeSet Method
A DbCommand instance
the object to write
command parameter index
A session implementor instance
In This Topic
    NullSafeSet Method (EnumAsInt<T>)
    In This Topic
    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.
    Syntax
    public void NullSafeSet( 
       DbCommand cmd,
       object value,
       int index,
       NHibernate.Engine.ISessionImplementor session
    )

    Parameters

    cmd
    A DbCommand instance
    value
    the object to write
    index
    command parameter index
    session
    A session implementor instance
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also