Skip to content

Commit 44b566a

Browse files
Document default type override
1 parent 6d02db3 commit 44b566a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

doc/reference/modules/basic_mapping.xml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2633,7 +2633,7 @@
26332633
types, <literal>System.Object</literal> types, and <literal>System.Object</literal> types for large objects. Just like
26342634
Columns for System.ValueType types can handle <literal>null</literal> values only if the entity property is properly
26352635
typed with a <literal>Nullable&lt;T&gt;</literal>. Otherwise <literal>null</literal> will be replaced by the default
2636-
value for the type when reading, and when be overwritten by it when persisting the entity, potentially leading to
2636+
value for the type when reading, and then will be overwritten by it when persisting the entity, potentially leading to
26372637
phantom updates.
26382638
</para>
26392639
<table>
@@ -3025,6 +3025,12 @@
30253025
<literal>NHibernate.Type.TypeFactory</literal>.
30263026
</para>
30273027

3028+
<para>
3029+
Default NHibernate types used when no <literal>type</literal> attribute is specified can be overridden by using
3030+
the <literal>NHibernate.Type.TypeFactory.RegisterType</literal> static method before configuring and building
3031+
session factories.
3032+
</para>
3033+
30283034
</sect2>
30293035

30303036
<sect2 id="mapping-types-custom">

0 commit comments

Comments
 (0)