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

Should be able to define Component's ParentReference Access type #120

Closed
NOtherDev opened this issue Jan 22, 2012 · 2 comments
Closed

Should be able to define Component's ParentReference Access type #120

NOtherDev opened this issue Jan 22, 2012 · 2 comments

Comments

@NOtherDev
Copy link

In Fluent NHibernate 1.3 there's no way to set up Access property for Component's ParentReference option.

Component(x => x.Test, m =>
{
    m.ParentReference(c => c.Parent).Access.Field();
});

This code set access strategy for x.Test property. Setting access strategy for c.Parent is not possible.

See also: http://notherdev.blogspot.com/2012/01/mapping-by-code-component-and-odd-cases.html

@chester89
Copy link
Collaborator

I'll look into it

@hazzik hazzik closed this as completed in 21bef40 Sep 24, 2020
@hazzik
Copy link
Member

hazzik commented Sep 24, 2020

Added optional second argument

Component(x => x.Test, m =>
{
    m.ParentReference(c => c.Parent, m => m.Access.Field());
});

@hazzik hazzik added this to the 3.0.0 milestone Sep 24, 2020
hazzik added a commit that referenced this issue Sep 30, 2020
@hazzik hazzik changed the title Component's ParentReference Access type can't be defined Should be able to define Component's ParentReference Access type Oct 7, 2020
@hazzik hazzik added the feature label Oct 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants