Skip to content

Nice to have: HasMany/HasManyToMany PropertyRef with expression parameter #125

@NOtherDev

Description

@NOtherDev

In Fluent NHibernate 1.3, HasMany/HasManyToMany chain offers setting PropertyRef option using string-typed other side property name. It'll be nice to have strongly-typed Expression<Func<TChild, object>> parameter, as it's in References chain.

It is:

HasMany(x => x.Users).PropertyRef("OtherProperty");

Nice to have:

HasMany(x => x.Users).PropertyRef(u => u.OtherProperty);

See also: http://notherdev.blogspot.com/2012/01/mapping-by-code-set-and-bag.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions