예제 #1
0
 public static bool SaveMailBulk(MailinfoDataSet.Mail_InfoDataTable mailInfoData, SqlTransaction trans)
 {
     if (mailInfoData == null)
     {
         return(false);
     }
     SqlBatchHelper.BulkInsert(trans, mailInfoData);
     return(true);
 }
예제 #2
0
 public static bool SaveMailBulk(MailinfoDataSet.Mail_InfoDataTable mailInfoData, string connectionstring)
 {
     if (mailInfoData == null)
     {
         return(false);
     }
     SqlBatchHelper.BulkInsert(connectionstring, mailInfoData);
     return(true);
 }
예제 #3
0
 public static bool SaveMailBulk(MailinfoDataSet.Mail_InfoDataTable mailInfoData)
 {
     if (mailInfoData == null)
     {
         return(false);
     }
     SqlBatchHelper.BulkInsert(ConnectionFactory.Instance.GetDefault(), mailInfoData);
     return(true);
 }
예제 #4
0
        public static void SaveLadderRanking(int rankType, List <BaseRankEntity> list)
        {
            RankingLadderYesterdayDataSet.Ranking_LadderYesterdayDataTable dataTable = new RankingLadderYesterdayDataSet.Ranking_LadderYesterdayDataTable();

            foreach (var entity in list)
            {
                var row = dataTable.NewRow();
                row["ManagerId"] = entity.ManagerId;
                row["RankType"]  = rankType;
                row["Rank"]      = entity.Rank;
                dataTable.Rows.Add(row);
            }

            SqlBatchHelper.BulkInsert(ConnectionString, dataTable);
        }
예제 #5
0
 public void SaveItemBulk(List <ShadowItemEntity> list, DbTransaction trans = null)
 {
     ItemShadowDataSet.ItemDataTable itemData = new ItemShadowDataSet.ItemDataTable();
     foreach (var entity in list)
     {
         var row = itemData.NewRow();
         row["TransactionId"] = entity.TransactionId;
         row["OperationType"] = entity.OperationType;
         row["ItemId"]        = entity.ItemId;
         row["ItemCode"]      = entity.ItemCode;
         row["ItemCount"]     = entity.ItemCount;
         row["ItemType"]      = entity.ItemType;
         row["IsBinding"]     = entity.IsBinding;
         row["ItemProperty"]  = entity.ItemProperty;
         row["GridIndex"]     = entity.GridIndex;
         row["Status"]        = entity.Status;
         itemData.Rows.Add(row);
     }
     SqlBatchHelper.BulkInsert(this.ConnectionString, itemData);
 }
예제 #6
0
 public static void SaveDailycupMatchBulk(DailycupMatchDataSet.DailyCup_MatchDataTable matchData)
 {
     SqlBatchHelper.BulkInsert(ConnectionString, matchData);
 }