Have you updated to the RC?

On Tue, Aug 18, 2009 at 7:00 AM, Jason M <[email protected]> wrote:

>
> I created an IReferenceConvention convention intending to apply a
> Not.Nullable() attribute to the IManyToOnePart similar to IProperty.
>
> Is there a way that I can use a reference convention and not have to
> inject the "not-null" NHibernate attribute?
>
>    public class RequiredReferenceConvention : IReferenceConvention
>    {
>        public bool Accept(IManyToOnePart target)
>        {
>            ...
>        }
>
>        public void Apply(IManyToOnePart target)
>        {
>            target.SetAttribute("not-null", "true");
>        }
>    }
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to