schangxiang@126.com
2024-12-19 4422008672f79f74841e11f20430c5e76686e293
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
using System;
using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity;
using System.Linq;
 
namespace iWare_SCADA_Model
{
    public partial class DbModel : DbContext
    {
        public DbModel()
            : base("name=SCADA_DF22001_CORE")
        {
        }
 
        public virtual DbSet<DataCaptureColumnConfig> DataCaptureColumnConfig { get; set; }
        public virtual DbSet<DataCaptureConfig> DataCaptureConfig { get; set; }
        public virtual DbSet<EquipmentBaseInfo> EquipmentBaseInfo { get; set; }
        public virtual DbSet<WorkPieceLog> WorkPieceLog { get; set; }
        public virtual DbSet<WorkPieceInfo> WorkPieceInfo { get; set; }
        public virtual DbSet<WorkPieceInfoLog> WorkPieceInfoLog { get; set; }
        public virtual DbSet<EquipmentCurrentMonitor> EquipmentCurrentMonitor { get; set; }
        public virtual DbSet<EquipmentWorkingLog> EquipmentWorkingLog { get; set; }
        public virtual DbSet<KnifeToolBaseInfo> KnifeToolBaseInfo { get; set; }
        public virtual DbSet<KnifeToolDataMonitor> KnifeToolDataMonitor { get; set; }
        public virtual DbSet<QualityDataInfo> QualityDataInfo { get; set; }
 
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Entity<DataCaptureColumnConfig>()
                .Property(e => e.WorkingProcedure)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureColumnConfig>()
                .Property(e => e.DataCapturePointCode)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureColumnConfig>()
                .Property(e => e.DataCapturePointCname)
                .IsUnicode(false);
 
 
            modelBuilder.Entity<DataCaptureColumnConfig>()
                .Property(e => e.DbNumber)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureColumnConfig>()
                .Property(e => e.Offset)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureColumnConfig>()
                .Property(e => e.DataCaptureColumnType)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureConfig>()
                .Property(e => e.EquipmentID)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureConfig>()
                .Property(e => e.WorkingProcedure)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureConfig>()
                .Property(e => e.DataCapturePointCode)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureConfig>()
                .Property(e => e.DataCapturePointCname)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureConfig>()
                .Property(e => e.PLCIP)
                .IsUnicode(false);
 
 
            modelBuilder.Entity<DataCaptureConfig>()
                .Property(e => e.DbNumber)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureConfig>()
                .Property(e => e.Offset)
                .IsUnicode(false);
 
            modelBuilder.Entity<DataCaptureConfig>()
                .Property(e => e.DataCaptureColumnType)
                .IsUnicode(false);
        }
    }
}