示例#1
0
        public void PersistChanges(Entity entity1, SqlCommand entity)
        {
            //1005 hacer update a un rol
            Rol rol = entity1 as Rol;
            int i   = (rol.endabled) ? 1 : 0;

            entity.CommandText = "execute LETDOWN.ActualizarRol " + rol.id.ToString() + ",'" + rol.name + "'," + rol.GetRolWeigth() + "," + i;
            Console.WriteLine(entity.CommandText);
            entity.ExecuteNonQuery();
        }