Skip to content

Commit 488485e

Browse files
committed
NH-3611 NHibernateUtil.GuessType(typeof(string)) returns ClassMetaType
1 parent b6e5136 commit 488485e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/NHibernate/NHibernateUtil.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ static NHibernateUtil()
3232
clrTypeToNHibernateType[type.ReturnedClass] = type;
3333
}
3434

35-
// There are multiple possibilites for boolean. Override so that we
36-
// use the most natural mapping.
35+
// There are multiple possibilites for boolean and strings.
36+
// Override so that we use the most natural mapping.
3737
clrTypeToNHibernateType[Boolean.ReturnedClass] = Boolean;
38+
clrTypeToNHibernateType[String.ReturnedClass] = String;
3839
}
3940

4041
/// <summary>

0 commit comments

Comments
 (0)