DBTransaction
Holds any IDbTransaction compatible object. This is autmatically created based on the value set in UseInTransaction property. If the UseInTransaction property is set to true, then at the time of creating a connection a new Transaction object will be created.
If you like to manually set the transaction object you can do so, although it is better to let the library handle the transaction object creation along with the connection object creation.
myBusinessObj.DBTransaction = myBusinessObj.DBConnection.BeginTransaction();
NOTE: This property is not NonSerializable and it is also ignored during Xml Serialization.
| C# | |
|---|---|
[XmlIgnoreAttribute()] public IDbTransaction DBTransaction {get; set;} | |
Target Platforms: .NET Framework 1.1 or .NET Framework 2.0