Multiple choice technology programming languages

Class used for the .NET database transaction

  1. System.Data.sql

  2. DBtransaction

  3. SqlTransaction

  4. DbConnectionStringBuilder

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

In .NET, the DbTransaction class (in System.Data.Common) is the base class for database transactions. SqlTransaction and other provider-specific transactions inherit from DbTransaction, making it the correct answer for the general database transaction class.