Esempio n. 1
0
        //public bool Update(TEntity entity)
        //{

        //    var db = new FbConnection(ConnectionString);
        //    FbTransaction trans;

        //    db.Open();

        //    trans = db.BeginTransaction();

        //    bool ok = db.Update(entity, trans);

        //    //Convert.ToInt32("abcd");

        //    trans.Commit();
        //    db.Close();
        //    return ok;
        //}

        public bool Update(TEntity entity)
        {
            //_conexao.Open();
            //_transacao = _conexao.BeginTransaction();
            bool ok = _conexao.Update(entity, _transacao);

            //_transacao.Commit();
            //_conexao.Close();
            return(ok);

            //var db = new FbConnection(ConnectionString);
            //FbTransaction trans;

            //db.Open();

            //trans = db.BeginTransaction();

            //bool ok = db.Update(entity, trans);

            //Convert.ToInt32("abcd");

            //trans.Commit();
            //return ok;
        }