We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71994bd commit 1c0f6a3Copy full SHA for 1c0f6a3
src/NHibernate/Mapping/ByCode/ModelMapper.cs
@@ -555,7 +555,8 @@ public HbmMapping CompileMappingFor(IEnumerable<System.Type> types)
555
System.Type firstType = typeToMap.FirstOrDefault();
556
if (firstType != null && typeToMap.All(t => t.Assembly.Equals(firstType.Assembly)))
557
{
558
- defaultAssemblyName = firstType.Assembly.GetName().Name;
+ //NH-2831: always use the full name of the assembly because it may come from GAC
559
+ defaultAssemblyName = firstType.Assembly.GetName().FullName;
560
}
561
if (firstType != null && typeToMap.All(t => t.Namespace == firstType.Namespace))
562
0 commit comments