Client side data portal used for making asynchronous data portal calls in .NET.
More...
|
| | DataPortal (ApplicationContext applicationContext, IDataPortalProxy proxy, IDataPortalCache dataPortalCache, DataPortalOptions dataPortalOptions) |
| | Creates an instance of the type.
|
| T | Create (params object?[]? criteria) |
| | Called by a factory method in a business class to create a new object, which is loaded with default values from the database.- Parameters
-
| criteria | Object-specific criteria. |
- Returns
- A new object, populated with default values.
|
| async Task< T > | CreateAsync (params object?[]? criteria) |
| | Starts an asynchronous data portal operation to create a business object.- Parameters
-
| criteria | Criteria describing the object to create. |
|
| T | Fetch (params object?[]? criteria) |
| | Called by a factory method in a business class to retrieve an object, which is loaded with values from the database.- Parameters
-
| criteria | Object-specific criteria. |
- Returns
- An object populated with values from the database.
|
| async Task< T > | FetchAsync (params object?[]? criteria) |
| | Starts an asynchronous data portal operation to create a business object.- Parameters
-
| criteria | Criteria describing the object to create. |
|
| T | Update (T obj) |
| | Called by the business object's Save() method to insert, update or delete an object in the database.Note that this method returns a reference to the updated business object. If the server-side DataPortal is running remotely, this will be a new and different object from the original, and all object references MUST be updated to use this new object.
|
| Task< T > | UpdateAsync (T obj) |
| | Called by a factory method in a business class or by the UI to update an object.- Parameters
-
- Exceptions
-
| ArgumentNullException | obj is null. |
|
| void | Delete (params object?[]? criteria) |
| | Called by a Shared (static in C#) method in the business class to cause immediate deletion of a specific object from the database.- Parameters
-
| criteria | Object-specific criteria. |
|
| Task | DeleteAsync (params object?[]? criteria) |
| | Called by a factory method in a business class or by the UI to delete an object.- Parameters
-
| criteria | Object-specific criteria. |
|
| T | Execute (T command) |
| | Called to execute a Command object on the server.To be a Command object, the object must inherit from CommandBase.
|
| T | Execute (params object?[]? criteria) |
| | Execute a command on the logical server.- Parameters
-
| criteria | Criteria provided to the command object. |
- Returns
- The resulting command object.
|
| Task< T > | ExecuteAsync (T command) |
| | Called by a factory method in a business class or by the UI to execute a command object.- Parameters
-
| command | Command object to execute. |
- Exceptions
-
| ArgumentNullException | command is null. |
|
| async Task< T > | ExecuteAsync (params object?[]? criteria) |
| | Execute a command on the logical server.- Parameters
-
| criteria | Criteria provided to the command object. |
- Returns
- The resulting command object.
|
| T | CreateChild () |
| | Creates and initializes a new child business object.
|
| T | CreateChild (params object?[]? criteria) |
| | Called by a factory method in a business class to create a new object, which is loaded with default values from the database.- Parameters
-
| criteria | Object-specific criteria. |
- Returns
- A new object, populated with default values.
|
| async Task< T > | CreateChildAsync () |
| | Creates and initializes a new child business object.
|
| async Task< T > | CreateChildAsync (params object?[]? criteria) |
| | Starts an asynchronous data portal operation to create a business object.- Parameters
-
| criteria | Criteria describing the object to create. |
|
| T | FetchChild () |
| | Fetches an existing child business object.
|
| T | FetchChild (params object?[]? criteria) |
| | Called by a factory method in a business class to retrieve an object, which is loaded with values from the database.- Parameters
-
| criteria | Object-specific criteria. |
- Returns
- An object populated with values from the database.
|
| async Task< T > | FetchChildAsync () |
| | Fetches an existing child business object.
|
| async Task< T > | FetchChildAsync (params object?[]? criteria) |
| | Starts an asynchronous data portal operation to create a business object.- Parameters
-
| criteria | Criteria describing the object to create. |
|
| void | UpdateChild (T child) |
| void | UpdateChild (ICslaObject child, params object?[]? parameters) |
| | Called by the business object's Save() method to insert, update or delete an object in the database.Note that this method returns a reference to the updated business object. If the server-side DataPortal is running remotely, this will be a new and different object from the original, and all object references MUST be updated to use this new object.
|
| void | UpdateChild (T child, params object?[]? parameters) |
| | Called by the business object's Save() method to insert, update or delete an object in the database.Note that this method returns a reference to the updated business object. If the server-side DataPortal is running remotely, this will be a new and different object from the original, and all object references MUST be updated to use this new object.
|
| async Task | UpdateChildAsync (T child) |
| async Task | UpdateChildAsync (T child, params object?[]? parameters) |
| | Called by a factory method in a business class or by the UI to update an object.- Parameters
-
| child | Object to update. |
| parameters | Additional, optional parameters to pass. |
- Exceptions
-
| ArgumentNullException | child is null. |
|
Client side data portal used for making asynchronous data portal calls in .NET.
- Template Parameters
-
| T | Type of business object. |
- Type Constraints
-
| T | : | notnull | |
| T | : | ICslaObject | |