1

Closed

Mapperverification forces Ingore on ReadOnly-properties

description

When you have a read-only property
 
public class CalendarEntry
{
    public string UniqueId { get { return ""; } }
}
 
And you want to assert that all properties on CalendarEntry have been related towards
 
mapper.AssertAllPropertiesRelated<CalendarEntry>();
 
We should not have to relate UniqueId, since it is read only. Now we do. So in this case we have to call an ignore on it in order for the validation to work.
Closed Apr 21, 2011 at 9:57 PM by ToreVestues

comments