Maps an instance of a Object that has the SerializableAttribute to a Binary column.

Namespace:  NHibernate.Type
Assembly:  NHibernate (in NHibernate.dll)

Syntax

Visual Basic (Declaration)
<SerializableAttribute> _
Public Class SerializableType _
	Inherits MutableType
C#
[SerializableAttribute]
public class SerializableType : MutableType
Visual C++
[SerializableAttribute]
public ref class SerializableType : public MutableType
JavaScript
NHibernate.Type.SerializableType = function();

Type.createClass(
	'NHibernate.Type.SerializableType',
	NHibernate.Type.MutableType);

Remarks

The SerializableType should be used when you know that Bytes are not going to be greater than 8,000.

The base class is MutableType because the data is stored in a byte[]. The System.Array does not have a nice "equals" method so we must do a custom implementation.

Inheritance Hierarchy

System..::.Object
  NHibernate.Type..::.AbstractType
    NHibernate.Type..::.NullableType
      NHibernate.Type..::.MutableType
        NHibernate.Type..::.SerializableType

See Also