Hello

I´m using fbclient 2.0 and VS 2008.
What it´s the problem with this code?
The Complete mothod of TransactionScope it´s never called, afeter executed
the field "ExitReales" from "articulos" has value=1, why?

Thanks

                using (TransactionScope ts = new TransactionScope())
            {
                try
                {
                        using (FbConnection cn = CreaConexion())
                        {
                            cn.Open();
                            using (FbCommand cmd = cn.CreateCommand())
                            {
                                cmd.CommandText = "update ArticulosAlmacen
set ExistReales =  1 where CodArticulo = @Cod";
                                cmd.Parameters.Add(new FbParameter("@Cod",
"MBPECOMAZ060"));
                                cmd.ExecuteNonQuery();
                            }
                        }
    
                        //ts.Complete();
                }
                }



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to