Skip to content

Commit c4cc1ef

Browse files
committed
Resolve merge conflicts
1 parent ca28ec1 commit c4cc1ef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/NHibernate/Cfg/XmlHbmBinding/PropertiesBinder.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,12 @@ private Property CreateProperty(IEntityPropertyMapping propertyMapping, System.T
390390
{
391391
var type = propertyOwnerType?.UnwrapIfNullable();
392392
if (string.IsNullOrEmpty(propertyMapping.Name))
393-
throw new MappingException("A property mapping must define the name attribute [" + propertyOwnerType + "]");
393+
throw new MappingException("A property mapping must define the name attribute [" + type + "]");
394394

395395
var propertyAccessorName = GetPropertyAccessorName(propertyMapping.Access);
396396

397-
if (propertyOwnerType != null && value.IsSimpleValue)
398-
value.SetTypeUsingReflection(propertyOwnerType, propertyMapping.Name, propertyAccessorName);
397+
if (type != null)
398+
value.SetTypeUsingReflection(type, propertyMapping.Name, propertyAccessorName);
399399

400400
return new Property
401401
{

0 commit comments

Comments
 (0)