![]() |
CSLA .NET 10.0.0
A home for your business logic
|
Interface defining the members of the child data portal type. More...
Public Member Functions | |
| Task< object > | CreateChildAsync (params object?[]? criteria) |
| Starts an asynchronous data portal operation to create a business object. | |
| Task< object > | FetchChildAsync (params object?[]? criteria) |
| Starts an asynchronous data portal operation to create a business object. | |
| Task | UpdateChildAsync (ICslaObject obj, params object?[]? parameters) |
| Called by a factory method in a business class or by the UI to update an object. | |
| object | 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. | |
| object | 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 (ICslaObject obj, 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.
| object Csla.IChildDataPortal.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.
| criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
| Task< object > Csla.IChildDataPortal.CreateChildAsync | ( | params object??[] | criteria | ) |
Starts an asynchronous data portal operation to create a business object.
| criteria | Criteria describing the object to create. |
Implemented in Csla.DataPortal< T >.
| object Csla.IChildDataPortal.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.
| criteria | Object-specific criteria. |
Implemented in Csla.DataPortal< T >.
| Task< object > Csla.IChildDataPortal.FetchChildAsync | ( | params object??[] | criteria | ) |
Starts an asynchronous data portal operation to create a business object.
| criteria | Criteria describing the object to create. |
Implemented in Csla.DataPortal< T >.
| void Csla.IChildDataPortal.UpdateChild | ( | ICslaObject | obj, |
| 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.
| obj | A reference to the business object to be updated. |
| parameters | Optional arguments passed to child update methods. |
| ArgumentNullException | obj is null. |
Implemented in Csla.DataPortal< T >.
| Task Csla.IChildDataPortal.UpdateChildAsync | ( | ICslaObject | obj, |
| params object??[] | parameters ) |
Called by a factory method in a business class or by the UI to update an object.
| obj | Object to update. |
| parameters | Additional, optional parameters to pass |
| ArgumentNullException | obj is null. |