 | 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: 5.4.1
Syntaxpublic Func<MemberInfo, string> GetJsonFieldName { get; set; }
Public Property GetJsonFieldName As Func(Of MemberInfo, String)
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