コード例 #1
0
        public static tencoderdevice UpdateEncoderDevice(tencoderdevice post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.Entry(post).State = EntityState.Modified;
                context.SaveChanges();
            }

            return post;
        }
コード例 #2
0
        public static tencoderdevice UpdateEncoderDevice(tencoderdevice post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.Entry(post).State = EntityState.Modified;
                context.SaveChanges();
            }

            return(post);
        }
コード例 #3
0
        public static tencoderdevice CreateEncoderDevice(tencoderdevice post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.tencoderdevices.Add(post);
                context.SaveChanges();
            }

            return post;
        }
コード例 #4
0
        public static tencoderdevice CreateEncoderDevice(tencoderdevice post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.tencoderdevices.Add(post);
                context.SaveChanges();
            }

            return(post);
        }