.NET

Reply
*perry
Message 1 of 1 (64 Views)

Another question

64 Views, 0 Replies
05-16-2006 03:35 PM
Another question, when starting a transaction against a database, whats the difference
between this code:
Database db = HostApplicationServices.WorkingDatabase;
using (Transaction t = db.TransactionManager.StartTransaction())

and this code?
Document doc = Application.DocumentManager.MdiActiveDocument;
using (Transaction t = doc.TransactionManager.StartTransaction())

The both appear to be using the current database.

Thanks for any insights
Perry
Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.