public static bool SaveMailBulk(MailinfoDataSet.Mail_InfoDataTable mailInfoData, SqlTransaction trans) { if (mailInfoData == null) { return(false); } SqlBatchHelper.BulkInsert(trans, mailInfoData); return(true); }
public static bool SaveMailBulk(MailinfoDataSet.Mail_InfoDataTable mailInfoData, string connectionstring) { if (mailInfoData == null) { return(false); } SqlBatchHelper.BulkInsert(connectionstring, mailInfoData); return(true); }
public static bool SaveMailBulk(MailinfoDataSet.Mail_InfoDataTable mailInfoData) { if (mailInfoData == null) { return(false); } SqlBatchHelper.BulkInsert(ConnectionFactory.Instance.GetDefault(), mailInfoData); return(true); }
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); }
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); }
public static void SaveDailycupMatchBulk(DailycupMatchDataSet.DailyCup_MatchDataTable matchData) { SqlBatchHelper.BulkInsert(ConnectionString, matchData); }