schangxiang@126.com
2025-09-17 ff43ddf18764629ff875478e4e47a7281cbd230a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
using iWareCommon.Utils;
using iWareSql.MyDbContext;
using System;
using System.Collections.Generic;
using System.Linq;
 
namespace iWareSql.DataAccess
{
    public class WareLogHandler
    {
        ///// <summary>
        ///// 批量添加 sap日志
        ///// </summary>
        ///// <param name="edm"></param>
        //public static bool BatchAddWareSAPLog(List<ware_sap_log> 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;
        //    }
        //}
 
    }
}