コード例 #1
0
 /// <summary>
 /// 批量保存
 /// </summary>
 /// <param name="entitys">参数</param>
 public virtual void Save(List <T> entitys)
 {
     if (entitys == null || entitys.Count == 0)
     {
         return;
     }
     EsClient.IndexMany(entitys, CurrentIndex);
     EsClient.Indices.Refresh(CurrentIndex);
 }