using iWareCommon.Utils;
using iWareSql.MyDbContext;
using System;
using System.Collections.Generic;
using System.Linq;
namespace iWareSql.DataAccess
{
public class WareLogHandler
{
/////
///// 批量添加 sap日志
/////
/////
//public static bool BatchAddWareSAPLog(List logs,MyDbContext.MyDbContext edm)
//{
// try
// {
// edm.ware_sap_log.AddRange(logs);
// return edm.SaveChanges() > 1;
// }
// catch (Exception ex)
// {
// Log4NetHelper.WriteErrorLog(LogType.Sys_DeleteLog, "添加WareSapLog日志 出现异常", ex);
// return false;
// }
//}
//public static bool AddWareSAPLog(ware_sap_log log, MyDbContext.MyDbContext edm)
//{
// try
// {
// edm.ware_sap_log.Add(log);
// return edm.SaveChanges() > 1;
// }
// catch (Exception ex)
// {
// Log4NetHelper.WriteErrorLog(LogType.Sys_DeleteLog, "添加WareSapLog日志 出现异常", ex);
// return false;
// }
//}
}
}