Skip to content

Provide customization of the Id property convention #407

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

Closed
bytenik opened this issue Dec 1, 2013 · 1 comment
Closed

Provide customization of the Id property convention #407

bytenik opened this issue Dec 1, 2013 · 1 comment
Assignees

Comments

@bytenik
Copy link
Contributor

bytenik commented Dec 1, 2013

I propose a lambda function passed into a configuration option, that given an object o will return the id.

@Mpdreamz
Copy link
Member

Mpdreamz commented Dec 2, 2013

Right now you can specify an alternative id by marking the type with a

[ElasticType(IdProperty="AlternateId")]

attribute.

I do like having a non attribute way to do it as well though since you don't always own your domain classes.

@Mpdreamz Mpdreamz added this to the NEST 0.90 milestone Feb 6, 2014
@Mpdreamz Mpdreamz added this to the NEST 1.0 RC milestone Jun 16, 2014
@gmarz gmarz modified the milestones: NEST 1.1, NEST 1.0 RC Jul 22, 2014
@gmarz gmarz removed this from the NEST 1.1 milestone Sep 10, 2014
@bytenik bytenik removed this from the NEST 1.1 milestone Sep 10, 2014
@gmarz gmarz self-assigned this Dec 12, 2014
gmarz added a commit that referenced this issue Dec 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants