Skip to content

Conversation

rjperes
Copy link
Member

@rjperes rjperes commented Oct 13, 2014

Added support for:
- camelcase
- camelcase-underscore
- camelcase-m-underscore
- lowercase
- lowercase-underscore
- pascalcase-underscore
- pascalcase-m
- pascalcase-m-underscore
@hazzik hazzik added this to the 4.1.0 milestone Oct 13, 2014
@hazzik
Copy link
Member

hazzik commented Nov 19, 2014

I thought that model mapper could find right field if you just say "field", doesn't it?

@rjperes
Copy link
Member Author

rjperes commented Nov 19, 2014

Nopes, we must specify the naming and the access strategy: http://www.nhforge.org/doc/nh/en/#d0e3588

@hazzik
Copy link
Member

hazzik commented Nov 19, 2014

I know that we must in XML. But I thought that by code mapper is intelligent enough to get the right field

@hazzik
Copy link
Member

hazzik commented Dec 30, 2015

It just works with Accessor.Field:

case Accessor.Field:
    string partialFieldNamingStrategyName = GetNamingFieldStrategy();
    if (partialFieldNamingStrategyName != null)
    {
        setAccessor("field." + partialFieldNamingStrategyName);
    }
    else
    {
        setAccessor("field");
    }
    break;

@hazzik hazzik closed this Dec 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants