Data.DB.IProviderSupport.PSInTransaction
| [–] Properties | |
|---|---|
| Type: function | |
| Visibility: public | |
| Source: Data.DB.pas Data.DB.hpp
| |
| Unit: Data.DB | |
| Parent: IProviderSupport | |
Delphi
function PSInTransaction: Boolean;
C++
virtual bool __fastcall PSInTransaction _DEPRECATED_ATTRIBUTE0 () = 0 ;
Description
Attention: PSInTransaction is deprecated. Please use IProviderSupportNG.
Indicates whether actions against the dataset occur in the context of a transaction.
The provider component applies updates within a transaction, if possible. To do so, it first checks whether a transaction is already underway, and if not, generates one using PSStartTransaction. To determine whether a transaction is already underway, the provider calls PSInTransaction.
PSInTransaction returns true if there is a transaction underway, and false otherwise.