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

2010-05-05 Thread Craig Gardiner
} Cheers, Craig Gardiner. From: fluent-nhibernate@googlegroups.com [mailto:fluent-nhibern...@googlegroups.com] On Behalf Of James Gregory Sent: Tuesday, 4 May 2010 6:25 PM To: fluent-nhibernate@googlegroups.com Subject: Re: [fluent-nhib] Automap - Null Property Convention? You'r

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

2010-05-04 Thread James Gregory
You're going to have to elaborate. What kind of trouble are you having? Is it mapping them incorrectly or not at all? In what way is the convention not working? On Tue, May 4, 2010 at 9:17 AM, Craig Gardiner wrote: > I'm having problems getting automapping to work with Nullable types eg. > public

[fluent-nhib] Automap - Null Property Convention?

2010-05-04 Thread Craig Gardiner
I'm having problems getting automapping to work with Nullable types eg. public virtual DateTime? LastPurchase { get; set; } I found this code and it looks reasonable but doesn't work. Any clues? public class NotNullPropertyConvention : IPropertyConvention, PropertyConventionAcceptance { pub