Esempio n. 1
0
 /// <summary>
 /// 发送更新数据
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="dataList"></param>
 /// <param name="sendParam"></param>
 public bool SendData <T>(T[] dataList, TransSendParam sendParam) where T : AbstractEntity, new()
 {
     using (var sender = new SqlDataSender(sendParam.IsChange, sendParam.Schema.ConnectKey))
     {
         return(sender.Send(dataList));
     }
 }
Esempio n. 2
0
 /// <summary>
 ///
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="dataList"></param>
 /// <param name="sendParam"></param>
 public void SendData <T>(T[] dataList, TransSendParam sendParam) where T : AbstractEntity, new()
 {
     using (var sender = new SqlDataSender(sendParam.IsChange, sendParam.ConnectKey))
     {
         sender.Send(dataList);
     }
 }