Click or drag to resize
ConventionConfigurationGetJsonFieldName Property
Gets or sets a method that returns the field name for the given property or field of a JSON object. The default uses the member name as is, without any modifications.

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 3.12.6
Syntax
public Func<MemberInfo, string> GetJsonFieldName { get; set; }

Property Value

Type: FuncMemberInfo, String
Remarks
You can configure Sphinx to automatically convert JSON field names, e.g. setting
json_autoconv_keynames = lowercase
in your sphinx.conf will convert all fields names to lower case. You'd then set this method to:
GetJsonFieldName = info => info.Name.ToLowerInvariant();
See Also