Implements the server-side Serviced DataPortal described in Chapter 4. More...
Public Member Functions | |
| TransactionalDataPortal (TransactionalAttribute transactionalAttribute) | |
| Initializes a new instance of the TransactionalDataPortal class. More... | |
| async Task< DataPortalResult > | Create (Type objectType, object criteria, DataPortalContext context, bool isSync) |
| Wraps a Create call in a TransactionScope More... | |
| async Task< DataPortalResult > | Fetch (Type objectType, object criteria, DataPortalContext context, bool isSync) |
| Called by the client-side DataProtal to retrieve an object. More... | |
| async Task< DataPortalResult > | Update (object obj, DataPortalContext context, bool isSync) |
| Called by the client-side DataPortal to update an object. More... | |
| async Task< DataPortalResult > | Delete (Type objectType, object criteria, DataPortalContext context, bool isSync) |
| Called by the client-side DataPortal to delete an object. More... | |
Implements the server-side Serviced DataPortal described in Chapter 4.
Definition at line 18 of file TransactionalDataPortal.cs.
| Csla.Server.TransactionalDataPortal.TransactionalDataPortal | ( | TransactionalAttribute | transactionalAttribute | ) |
Initializes a new instance of the TransactionalDataPortal class.
| transactionalAttribute | The transactional attribute that defines transaction options to be used with transactions. |
Definition at line 28 of file TransactionalDataPortal.cs.
| async Task< DataPortalResult > Csla.Server.TransactionalDataPortal.Create | ( | Type | objectType, |
| object | criteria, | ||
| DataPortalContext | context, | ||
| bool | isSync | ||
| ) |
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.
| objectType | A 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. |
Implements Csla.Server.IDataPortalServer.
Definition at line 51 of file TransactionalDataPortal.cs.
| async Task< DataPortalResult > Csla.Server.TransactionalDataPortal.Delete | ( | Type | objectType, |
| object | criteria, | ||
| DataPortalContext | context, | ||
| bool | isSync | ||
| ) |
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.
| 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. |
Implements Csla.Server.IDataPortalServer.
Definition at line 168 of file TransactionalDataPortal.cs.
| async Task< DataPortalResult > Csla.Server.TransactionalDataPortal.Fetch | ( | Type | objectType, |
| object | criteria, | ||
| DataPortalContext | context, | ||
| bool | isSync | ||
| ) |
Called by the client-side DataProtal to retrieve an object.
This method delegates to SimpleDataPortal but wraps that call within a TransactionScope to provide transactional support via System.Transactions.
| 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. |
Implements Csla.Server.IDataPortalServer.
Definition at line 114 of file TransactionalDataPortal.cs.
| async Task< DataPortalResult > Csla.Server.TransactionalDataPortal.Update | ( | object | obj, |
| DataPortalContext | context, | ||
| bool | isSync | ||
| ) |
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.
| 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. |
Implements Csla.Server.IDataPortalServer.
Definition at line 141 of file TransactionalDataPortal.cs.