Skip to content

Commit

Permalink
Synchronize DefaultFieldNameInferrer and PropertyNamingPolicy (#8362
Browse files Browse the repository at this point in the history
) (#8368)

Co-authored-by: Florian Bernd <git@flobernd.de>
  • Loading branch information
github-actions[bot] and flobernd committed Sep 27, 2024
1 parent 6bb513b commit f9d28ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ protected ElasticsearchClientSettingsBase(

_sourceSerializer = sourceSerializerFactory?.Invoke(sourceSerializer, this) ?? sourceSerializer;
_propertyMappingProvider = propertyMappingProvider ?? sourceSerializer as IPropertyMappingProvider ?? new DefaultPropertyMappingProvider();
_defaultFieldNameInferrer = p => p.ToCamelCase();
_defaultFieldNameInferrer = (_sourceSerializer is DefaultSourceSerializer dfs) ? p => dfs.Options?.PropertyNamingPolicy?.ConvertName(p) ?? p : p => p.ToCamelCase();
_defaultIndices = new FluentDictionary<Type, string>();
_defaultRelationNames = new FluentDictionary<Type, string>();
_inferrer = new Inferrer(this);
Expand Down

0 comments on commit f9d28ca

Please sign in to comment.