Implements the server-side Serviced DataPortal described in Chapter 4.
More...
|
| | TransactionalDataPortal (DataPortalBroker dataPortalBroker, TransactionalAttribute transactionalAttribute) |
| | Initializes a new instance of the TransactionalDataPortal class.
|
| async Task< DataPortalResult > | Create ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync) |
| | Wraps a Create call in a TransactionScope.
|
| async Task< DataPortalResult > | Fetch ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync) |
| | Called by the client-side DataPortal to retrieve an object.
|
| async Task< DataPortalResult > | Update (ICslaObject obj, DataPortalContext context, bool isSync) |
| | Called by the client-side DataPortal to update an object.
|
| async Task< DataPortalResult > | Delete ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync) |
| | Called by the client-side DataPortal to delete an object.
|
Implements the server-side Serviced DataPortal described in Chapter 4.
◆ TransactionalDataPortal()
Initializes a new instance of the TransactionalDataPortal class.
- Parameters
-
| dataPortalBroker | The broker that is used to perform the data access operation |
| transactionalAttribute | The transactional attribute that defines transaction options to be used with transactions. |
- Exceptions
-
| ArgumentNullException | dataPortalBroker or transactionalAttribute is null. |
◆ Create()
| async Task< DataPortalResult > Csla.Server.TransactionalDataPortal.Create |
( |
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type | objectType, |
|
|
object | criteria, |
|
|
DataPortalContext | context, |
|
|
bool | isSync ) |
|
inline |
Wraps a Create call in a TransactionScope.
This method delegates to SimpleDataPortal but wraps that call within a TransactionScope to provide transactional support via System.Transactions.
- Parameters
-
| objectType | A System.Type object indicating the type of business object to be created. |
| criteria | A custom criteria object providing any extra information that may be required to properly create the object. |
| context | Context data from the client. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
- Returns
- A populated business object.
- Exceptions
-
| ArgumentNullException | objectType , criteria or context is null. |
Implements Csla.Server.IDataPortalServer.
◆ Delete()
| async Task< DataPortalResult > Csla.Server.TransactionalDataPortal.Delete |
( |
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type | objectType, |
|
|
object | criteria, |
|
|
DataPortalContext | context, |
|
|
bool | isSync ) |
|
inline |
Called by the client-side DataPortal to delete an object.
This method delegates to SimpleDataPortal but wraps that call within a TransactionScope to provide transactional support via System.Transactions.
- Parameters
-
| objectType | Type of business object to create. |
| criteria | Object-specific criteria. |
| context | Context data from the client. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
- Exceptions
-
| ArgumentNullException | objectType , criteria or context is null. |
Implements Csla.Server.IDataPortalServer.
◆ Fetch()
| async Task< DataPortalResult > Csla.Server.TransactionalDataPortal.Fetch |
( |
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type | objectType, |
|
|
object | criteria, |
|
|
DataPortalContext | context, |
|
|
bool | isSync ) |
|
inline |
Called by the client-side DataPortal to retrieve an object.
This method delegates to SimpleDataPortal but wraps that call within a TransactionScope to provide transactional support via System.Transactions.
- Parameters
-
| objectType | Type of business object to retrieve. |
| criteria | Object-specific criteria. |
| context | Object containing context data from client. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
- Returns
- A populated business object.
- Exceptions
-
| ArgumentNullException | objectType , criteria or context is null. |
Implements Csla.Server.IDataPortalServer.
◆ Update()
Called by the client-side DataPortal to update an object.
This method delegates to SimpleDataPortal but wraps that call within a TransactionScope to provide transactional support via System.Transactions.
- Parameters
-
| obj | A reference to the object being updated. |
| context | Context data from the client. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
- Returns
- A reference to the newly updated object.
- Exceptions
-
| ArgumentNullException | obj or context is null. |
Implements Csla.Server.IDataPortalServer.
The documentation for this class was generated from the following file: