I have a class like this
public class Definition
{
public virtual string Name {} ..
public void Validate(string value){}
}
public class Value
{
private string innerValue;
public virtual Definition Definition {}
public string Value
{
get {
return innerValue;
}
set
{
this.Definition.Validate(value);
innerValue = value;
}
}
}
I am using Lazy loading, POCO, problem is when Value object is being materialized, EF does not try to load the Definition object ( which should load on lazy loading)
Do i need to do something special for it to work transparently ?
Lazy loading is not triggered during materialization.