Skip to content

Commit

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

Co-authored-by: Florian Bernd <[email protected]>
  • Loading branch information
github-actions[bot] and flobernd authored Sep 27, 2024
1 parent 63ea01e commit dedde60
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 dedde60

Please sign in to comment.