I have a domain class like this:
public class DomainClass
{
public virtual string name{get;set;}
public virtual IList Notes{get;set;}
}
>
Please consider, that in some cases better to avoid public virtuals, use template method pattern in such a way:
public void Load(IExecutionContext context)
{
// Can safely set properties, call methods, add events, etc...
this.Load(context);
// Can safely set properties, call methods, add events, etc.
}
protected virtual void Load(IExecutionContext context)
{
}