摘要:
NEST提供了多种映射方法,这里介绍下通过Attribute自定义映射。 一、简单实现 1、定义业务需要的POCO,并指定需要的Attribute 2、接着我们通过.AutoMap()来实现映射 注意:通过.Properties()可以重写通过Attribute定义的映射 二、Attribute介绍 阅读全文
posted @ 2017-12-13 11:10
a-du
阅读(3231)
评论(1)
推荐(0)
![]() |
资深软件工程师。关注.net、C#、MVC、Java、Spring、Spring boot、Spring cloud、Lucene、ElasticSearch、elk、spark&&ALS。 个人网站 www.a-du.net |