EditableBusinessObject doesn't work properly with auto properties

Feb 21, 2010 at 6:50 PM

Could somebody fix the EditableBusinessObjectAspect class ? 

In CompileTimeInitialize(Type type) method right now this line doesn't work properly:

t.GetFields().ToList().ForEach(fld => fields.Add(fld));

it should be changed to something like this:

t.GetFields(BindingFlags.NonPublic | BindingFlags.Instance).ToList().ForEach(fields.Add);

Or elsewhere field map fails to initialize correctly there and that results in "no translation possible for Propertyname ..." exception.