Skip to content

Commit 1c0f6a3

Browse files
rjpereshazzik
authored andcommitted
NH-2831
1 parent 71994bd commit 1c0f6a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/NHibernate/Mapping/ByCode/ModelMapper.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,8 @@ public HbmMapping CompileMappingFor(IEnumerable<System.Type> types)
555555
System.Type firstType = typeToMap.FirstOrDefault();
556556
if (firstType != null && typeToMap.All(t => t.Assembly.Equals(firstType.Assembly)))
557557
{
558-
defaultAssemblyName = firstType.Assembly.GetName().Name;
558+
//NH-2831: always use the full name of the assembly because it may come from GAC
559+
defaultAssemblyName = firstType.Assembly.GetName().FullName;
559560
}
560561
if (firstType != null && typeToMap.All(t => t.Namespace == firstType.Namespace))
561562
{

0 commit comments

Comments
 (0)