Esempio n. 1
0
        public static void DbCreate(BusParOfBusFunc entity)
        {
            var dbe = new Model1();

            dbe.BusParOfBusFuncs.Add(entity);
            dbe.SaveChanges();
        }
Esempio n. 2
0
 public static void BusParOfBusFuncUpdate(BusParOfBusFunc entity)
 {
     using (var dbe = new Model1())
     {
         dbe.BusParOfBusFuncs.Attach(entity);
         dbe.Entry(entity).State = EntityState.Modified;
         dbe.SaveChanges();
     }
 }
Esempio n. 3
0
 public static void BusParOfBusFuncDelete(BusParOfBusFunc entity)
 {
     using (var dbe = new Model1())
     {
         dbe.BusParOfBusFuncs.Attach(entity);
         dbe.BusParOfBusFuncs.Remove(entity);
         dbe.SaveChanges();
     }
 }