我有:
1)
Dictionary<MyClass, double>
2)elasticsearch 7
3)巢7
我想通过以下方式在Elasticsearch数据库中编写字典:
client.IndexDocument(myDictionary).
我知道,我可以使用
List<KeyValuePair<MyClass, double>>
但是在我的工作中,我需要使用字典。
你读过这个吗?
Not ableTo Serialize Dictionary with Complex key using Json.net