示例#1
0
        public void Write(Topology tpl)
        {
            using (var ctx = new XmlGeneratorWPF.DBContexts())
            {
                ctx.Topology.Add(tpl);

                ctx.SaveChanges();
            }
        }
示例#2
0
        public void Write(security.Config sec)
        {
            using (var ctx = new XmlGeneratorWPF.DBContexts())
            {
                ctx.SecurityRecordings.Add(sec);

                ctx.SaveChanges();
            }
        }
示例#3
0
        public void Write(plate.ConfigP plt)
        {
            using (var ctx = new XmlGeneratorWPF.DBContexts())
            {
                ctx.PlateRecognition.Add(plt);

                ctx.SaveChanges();
            }
        }