[ElasticsearchType(Name = "virksomhed")]public class Company{ [Text(Name = "Vrvirksomhed.cvrNummer")] public string cvrNumber { get; set; }}
Vrvirksomhed看起来应该是
Company映射为对象数据类型或嵌套数据类型的POCO属性(请参阅《权威指南》中的嵌套对象以了解差异),其中POCO具有称为的属性
cvrNumber,类似于
[ElasticsearchType(Name = "virksomhed")]public class Company{ [Object(Name = "Vrvirksomhed")] public Vrvirksomhed Vrvirksomhed { get; set; }}public class Vrvirksomhed{ [Text(Name = "cvrNummer")] public string cvrNumber { get; set; }}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)