Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
NOtherDev opened this issue Jan 22, 2012 · 0 comments
Open
Labels

Comments

@NOtherDev
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant