Пример #1
0
        public static void AsignarServicio(Vehiculo_Servicio asignacion)
        {
            var db = new LavaCarDBEntities();

            db.Vehiculo_Servicio.Add(asignacion);
            db.SaveChanges();
        }
Пример #2
0
        public static void Eliminar(int ID_Vehiculo)
        {
            var db = new LavaCarDBEntities();

            db.Database.ExecuteSqlCommand("DELETE FROM Vehiculo WHERE ID_Vehiculo = @id", new SqlParameter("@id", ID_Vehiculo));
            db.SaveChanges();
        }
Пример #3
0
        public static void Editar(Vehiculo vehiculo)
        {
            var db = new LavaCarDBEntities();

            db.Entry(vehiculo).State = EntityState.Modified;
            db.SaveChanges();
        }
Пример #4
0
        public static void Crear(Vehiculo vehiculo)
        {
            var db = new LavaCarDBEntities();

            db.Vehiculo.Add(vehiculo);
            db.SaveChanges();
        }
Пример #5
0
        public static void Editar(Servicios servicio)
        {
            var db = new LavaCarDBEntities();

            db.Entry(servicio).State = EntityState.Modified;
            db.SaveChanges();
        }
Пример #6
0
        public static void Crear(Servicios servicio)
        {
            var db = new LavaCarDBEntities();

            db.Servicios.Add(servicio);
            db.SaveChanges();
        }