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