Interface defining the members of the child data portal type.
More...
|
| Task< T > | CreateChildAsync (params object?[]? criteria) |
| | Starts an asynchronous data portal operation to create a business object.
|
| Task< T > | FetchChildAsync (params object?[]? criteria) |
| | Starts an asynchronous data portal operation to create a business object.
|
| Task | UpdateChildAsync (T child, params object?[]? parameters) |
| | Called by a factory method in a business class or by the UI to update an 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.
|
| 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.
|
| 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.
|
Interface defining the members of the child data portal type.
- Template Parameters
-
◆ CreateChild()
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.
Implemented in Csla.DataPortal< T >.
◆ CreateChildAsync()
Starts an asynchronous data portal operation to create a business object.
- Parameters
-
| criteria | Criteria describing the object to create. |
Implemented in Csla.DataPortal< T >.
◆ FetchChild()
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.
Implemented in Csla.DataPortal< T >.
◆ FetchChildAsync()
Starts an asynchronous data portal operation to create a business object.
- Parameters
-
| criteria | Criteria describing the object to create. |
Implemented in Csla.DataPortal< T >.
◆ UpdateChild()
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.
- Parameters
-
| child | A reference to the business object to be updated. |
| parameters | Optional arguments passed to child update methods. |
- Exceptions
-
| ArgumentNullException | child is null. |
Implemented in Csla.DataPortal< T >.
◆ UpdateChildAsync()
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. |
Implemented in Csla.DataPortal< T >.
The documentation for this interface was generated from the following file: