Open
Description
I've got the following PersistenceSpecification:
new PersistenceSpecification<MyClass>(session)
.CheckProperty(c => c.Name, "Testing")
.CheckProperty(c => c.Address.Address1, "Address 1")
.CheckProperty(c => c.Address.Address2, "Address 2")
.CheckProperty(c => c.Address.Address3, "Address 3")
.VerifyTheMappings();
When this is run, the .CheckProperty(c => c.Address.Address1, "Address 1")
throws an error.
Upon looking in my database, I see the Name column has been set (to "Testing") however the columns mapped to the component are not
I've mapped the Address component like this (In MyClassMap)
Component(x => x.Address, m =>
{
m.Map(x => x.Address1);
m.Map(x => x.Address2);
m.Map(x => x.Address3);
});