I've posted this as an issue on github, but thought I'd share it here as may get more attention... (As i'm not sure if it's a bug with PersistenceSpecification)
https://github.com/jagregory/fluent-nhibernate/issues/187 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 - > Expecting "Address 1" but got null Upon looking in my database, I see the *Name *column has been set (to "Testing") however the columns mapped to the component are null. I ran a trace on the db, and noticed that the SQL run against the db, doesn't include values for *Address1* for example... 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); }); -- You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To view this discussion on the web visit https://groups.google.com/d/msg/fluent-nhibernate/-/i_TH0sbEcnwJ. To post to this group, send email to fluent-nhibernate@googlegroups.com. To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en.