2
schangxiang@126.com
2024-07-03 37165fb1c3cdb7fda655741ee53f95bbe52b5d7b
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
using iWare_SCADA_BusinessLogical.DLA.Dao;
using iWare_SCADA_Model;
using log4net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
 
namespace iWare_SCADA_BusinessLogical.BLL
{
    public class WorkPieceLogManager//: CommonService<WorkPieceLog, WorkPieceLog,DbModel>
    {
        public static List<WorkPieceLog> GetWorkPieceLog(string WorkPieceID)
        {
            using (DbModel db = new DbModel())
            {
                //查询所有
                var query = db.WorkPieceLog.Where(o=>o.WorkPieceID== WorkPieceID).ToList();
                return query;
            }
        }
 
 
        public static long InsertWorkPieceLog(WorkPieceLog workPiece)
        {
            using (DbModel db = new DbModel())
            {
                db.WorkPieceLog.Add(workPiece);
                db.SaveChanges();
                return workPiece.Id;
            }
        }
 
 
 
    }
}