The following works for me in version 1.0, so perhaps as James says the
later changes broke it.
public class Parent {
private readonly IList<Child> _children = new List<Child>();
public virtual IEnumerable<Child> Children {
get { return _children; }
}
}
public class ParentMappingOverride : IAutoMappingOverride<Parent>
{
public void Override(AutoMapping<Parent> mapping) {
mapping.HasManyToMany(p => p.Children)
.Access.CamelCaseField(Prefix.Underscore)
.AsList();
}
}
<hibernate-mapping ...>
<class ...>
...
<list access="field.camelcase-underscore" name="Children" ... />
...
</class>
</hibernate-mapping>
--
You received this message because you are subscribed to the Google Groups
"Fluent NHibernate" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/fluent-nhibernate/-/0dWTxisbbYwJ.
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.