[fluent-nhib] Re: Running Examples.FirstProject returns FluentConfigurationException due to NullReferenceException

2010-05-05 Thread EvenMien
I was able to run the project successfully after commenting out Location property on the Product entity and the Component() configuration call in the ProductMap class. On May 5, 11:09 am, EvenMien wrote: > I just cloned the repository yesterday and attempted to run the > FirstProject example. It

[fluent-nhib] Running Examples.FirstProject returns FluentConfigurationException due to NullReferenceException

2010-05-05 Thread EvenMien
I just cloned the repository yesterday and attempted to run the FirstProject example. It looks like the document property for BaseXmlComponentWriter is not instantiated before ImportAndAppendChild() is called on it. {FluentNHibernate.Cfg.FluentConfigurationException: An invalid or incomplete conf

FW: [fluent-nhib] Automap - Null Property Convention?

2010-05-05 Thread Craig Gardiner
Hi James, This code seems to work for nullable propertieshowever the previous code looked a lot cleaner. criteria.Expect(x => x.Nullable, Is.Not.Set); public class NotNullPropertyConvention : IPropertyConvention, IPropertyConventionAcceptance { public void Accept(IAcce