UseTransaction
Value of UseTransaction determines weather this object will create a Transaction at the time of creating database connection.
If UseTransaction is set to true, and AssignConnection method is used to create joined objects, the connection, transaction are automatically shared by each business object. This allows multiple business objects to run various commands under the same transaction scope.
myBusinessObj.UseTransaction = true;
NOTE: This property is set to false by default, and hence for the business object to run various commands in a transaction, this property must be explicitely set to true.
| C# | |
|---|---|
public virtual bool UseTransaction {get; set;} | |
Target Platforms: .NET Framework 1.1 or .NET Framework 2.0