Exemplo 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));
     }
 }
Exemplo 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);
     }
 }