There's bug in MappingUnit, in xml fields mapping.
If you're trying to map data to protected or private
fields exception "No ...(something - i don't remember)...
defined for MyBusinessObject.myField (...)"
FIX:
was:
#region field mappings
//iterate over all mapped fields in the node rather
than the fields of the object, to
//make sure that invalid mappings create errors
(e.g. if field names have changed. if the
//object field were being traversed, there would be
simply no mapping...)
for (int i=0; i<node.Fields.Count; i++)
{
//Field of the XML file
Field field = node.Fields[i] as Field;
//get field pointer - if there is no matching
member, throw exception
FieldInfo fi =
persistableObject.GetType().GetField(field.Name);
(...)
should be (last line):
FieldInfo fi = persistableObject.GetType().GetField
(field.Name, BindingFlags.Public | BindingFlags.NonPublic
| BindingFlags.Instance);
Greetings,
Krzysztof Ploch