First of all i looked in the contributed test, i do not understand
what your test is trying to prove, you are working with lazy
properties there, what you are not doing here.
First of all i tried the nullpattern for the following class
internal class Person
{
private Name name;
protected Person()
{
}
public Person(Name name)
: this()
{
this.name = name;
}
public virtual Guid Id { get; set; }
public virtual Name Name
{
get { return name = name ?? new Name(); }
}
}
internal class Name
{
public string Firstname { get; set; }
public string Lastname { get; set; }
}
This worked without even giving an itch, so i really do not understand
what is the problem here.
If you do work with lazy properties be warned that even the
proxyvalidator will give you errors when trying to compile mappings
for not an auto property !!!, so the test you supplied is very very
strange
I think we need a clearer example before we can understand what is
going on.
Nexus