摘要:
SqlDatabasedb=newSqlDatabase(@"server=.\sql2008;uid=sa;pwd=123456;database=DBTEST");using(DbConnectionconnection=db.CreateConnection()){//打开链接connection.Open();//创建事务DbTransactionTran=connection.BeginTransaction();try{db.ExecuteNonQuery(Tran,CommandType.Text,"InsertIntoTLog(DEC)Values 阅读全文