ObjectTransaction Constructor |
Initializes a new transaction, whose primary buffer will be bound to the specified buffer.
Namespace:
Aloe.SystemFrameworks.Domain
Assembly:
Aloe.SystemFrameworks.Domain (in Aloe.SystemFrameworks.Domain.dll) Version: 20.1.3.5
Syntaxpublic ObjectTransaction(
RepositorySource source,
IDataSource dataSource,
string name = null,
string applicationName = null,
string userName = null,
IBuffer primaryBuffer = null,
bool dontUseExternalDataMode = false
)
Public Sub New (
source As RepositorySource,
dataSource As IDataSource,
Optional name As String = Nothing,
Optional applicationName As String = Nothing,
Optional userName As String = Nothing,
Optional primaryBuffer As IBuffer = Nothing,
Optional dontUseExternalDataMode As Boolean = false
)
public:
ObjectTransaction(
RepositorySource^ source,
IDataSource^ dataSource,
String^ name = nullptr,
String^ applicationName = nullptr,
String^ userName = nullptr,
IBuffer^ primaryBuffer = nullptr,
bool dontUseExternalDataMode = false
)
new :
source : RepositorySource *
dataSource : IDataSource *
?name : string *
?applicationName : string *
?userName : string *
?primaryBuffer : IBuffer *
?dontUseExternalDataMode : bool
(* Defaults:
let _name = defaultArg name null
let _applicationName = defaultArg applicationName null
let _userName = defaultArg userName null
let _primaryBuffer = defaultArg primaryBuffer null
let _dontUseExternalDataMode = defaultArg dontUseExternalDataMode false
*)
-> ObjectTransaction
Parameters
- source
- Type: Aloe.SystemFrameworks.DomainRepositorySource
The repository source that will provide the repositories for the objects. - dataSource
- Type: Aloe.SystemFrameworks.Domain.DataAccessIDataSource
The data source. - name (Optional)
- Type: SystemString
The name of the transaction. Used only for identification purposes. - applicationName (Optional)
- Type: SystemString
Name of the application. - userName (Optional)
- Type: SystemString
Name of the user. - primaryBuffer (Optional)
- Type: Aloe.SystemFrameworks.Domain.DataAccessIBuffer
Specifies, that the transaction should use the specified buffer as its
PrimaryBuffer. - dontUseExternalDataMode (Optional)
- Type: SystemBoolean
if set to true the transaction will not use external data mode,
even when the primary buffer is external.
In this case, the primary buffer should not be updated externally to the transaction.
Exceptions
See Also