Implements the server-side DataPortal message router as discussed in Chapter 4.
More...
|
| | DataPortal (ApplicationContext applicationContext, IDashboard dashboard, CslaOptions options, IAuthorizeDataPortal authorizer, InterceptorManager interceptors, DataPortalExceptionHandler exceptionHandler, SecurityOptions securityOptions) |
| | Creates an instance of the type.
|
| 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. |
|
|
| static object | GetCriteriaFromArray (params object?[]? criteria) |
| | Converts a params array to a single serializable criteria value.
|
| static ?? object[] | GetCriteriaArray (object? criteria) |
| | Converts a single serializable criteria value into an array of type object.
|
Implements the server-side DataPortal message router as discussed in Chapter 4.
◆ DataPortal()
Creates an instance of the type.
- Parameters
-
| applicationContext | |
| dashboard | |
| options | |
| authorizer | |
| interceptors | |
| exceptionHandler | |
| securityOptions | |
- Exceptions
-
| ArgumentNullException | Any parameter is null. |
◆ Create()
| async Task< DataPortalResult > Csla.Server.DataPortal.Create |
( |
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type | objectType, |
|
|
object | criteria, |
|
|
DataPortalContext | context, |
|
|
bool | isSync ) |
|
inline |
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. |
Implements Csla.Server.IDataPortalServer.
◆ Delete()
| async Task< DataPortalResult > Csla.Server.DataPortal.Delete |
( |
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type | objectType, |
|
|
object | criteria, |
|
|
DataPortalContext | context, |
|
|
bool | isSync ) |
|
inline |
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. |
Implements Csla.Server.IDataPortalServer.
◆ Fetch()
| async Task< DataPortalResult > Csla.Server.DataPortal.Fetch |
( |
[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type | objectType, |
|
|
object | criteria, |
|
|
DataPortalContext | context, |
|
|
bool | isSync ) |
|
inline |
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. |
Implements Csla.Server.IDataPortalServer.
◆ GetCriteriaArray()
| ?? object[] Csla.Server.DataPortal.GetCriteriaArray |
( |
object? | criteria | ) |
|
|
inlinestatic |
Converts a single serializable criteria value into an array of type object.
- Parameters
-
| criteria | Single serializable criteria value |
◆ GetCriteriaFromArray()
| object Csla.Server.DataPortal.GetCriteriaFromArray |
( |
params object??[] | criteria | ) |
|
|
inlinestatic |
Converts a params array to a single serializable criteria value.
- Parameters
-
◆ Update()
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. |
Implements Csla.Server.IDataPortalServer.
The documentation for this class was generated from the following file: