Selects the appropriate data portal implementation to invoke based on the object and configuration.
More...
|
| | DataPortalSelector (ApplicationContext applicationContext, SimpleDataPortal simpleDataPortal, FactoryDataPortal factoryDataPortal, Configuration.DataPortalOptions dataPortalOptions) |
| async Task< DataPortalResult > | Create ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync) |
| | Create a new business object.- Parameters
-
| objectType | Type of business object to create. |
| criteria | Criteria object describing business object. |
| context | Server.DataPortalContext object passed to the server. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
- Exceptions
-
| ArgumentNullException | objectType , criteria or context is null. |
|
| async Task< DataPortalResult > | Fetch ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync) |
| | Get an existing business object.- Parameters
-
| objectType | Type of business object to retrieve. |
| criteria | Criteria object describing business object. |
| context | Server.DataPortalContext object passed to the server. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
- Exceptions
-
| ArgumentNullException | objectType , criteria or context is null. |
|
| async Task< DataPortalResult > | Update (ICslaObject obj, DataPortalContext context, bool isSync) |
| | Update a business object.- Parameters
-
| obj | Business object to update. |
| context | Server.DataPortalContext object passed to the server. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
- Exceptions
-
| ArgumentNullException | obj or context is null. |
|
| async Task< DataPortalResult > | Delete ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync) |
| | Delete a business object.- Parameters
-
| objectType | Type of business object to create. |
| criteria | Criteria object describing business object. |
| context | Server.DataPortalContext object passed to the server. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
- Exceptions
-
| ArgumentNullException | objectType , criteria or context is null. |
|
Selects the appropriate data portal implementation to invoke based on the object and configuration.