There isn't one. Just make one convention and have it implement all the
relevant interfaces (IPropertyConvention, IReferenceConvention,
IHasManyConvention and IHasManyToManyConvention are the 4 that come to
mind).

If you would like to see that FNH gets a single convention for controlling
property access then you are more than welcome to fork us, add the
convention (with tests!) and send us a pull request. Take a look at some of
the existing conventions such as ForeignKeyConvention to get an idea of how
they should be implemented.

On Wed, Oct 21, 2009 at 9:31 PM, Chris C <[email protected]> wrote:

>
> What I want is a convention for property access, i.e. all properties
> should use either Access.BackField() or Access.CamelCaseField() unless
> an explicit access type has already been set.
>
> Initially I tried using IPropertyConvention but this only applied to
> properties and not references, one-to-many, etc.
>
> So what convention or inspector covers wherever a property is
> accessed? As currently it seems like I have to implement each one
> individually, despite the fact they all do exactly the same thing,
> they all end up calling Apply(instance.EntityType, instance.Name,
> instance.Access) which then implements the same common logic.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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