Used internally to obtain instances of IType.
Applications should use static methods and constants on NHibernate.NHibernateUtil if the default IType is good enough. For example, the TypeFactory should only be used when the String needs to have a length of 300 instead of 255. At this point NHibernateUtil.String does not get you the correct IType. Instead use TypeFactory.GetString(300) and keep a local variable that holds a reference to the IType.
Exemplo n.º 1
0
 internal SerializableType(System.Type serializableClass, BinarySqlType sqlType) : base(sqlType)
 {
     this.serializableClass = serializableClass;
     binaryType             = (BinaryType)TypeFactory.GetBinaryType(sqlType.Length);
 }