CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.IChildDataPortal Interface Reference

Interface defining the members of the child data portal type. More...

Inheritance diagram for Csla.IChildDataPortal:
Csla.DataPortal< T >

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.

Detailed Description

Interface defining the members of the child data portal type.

Member Function Documentation

◆ CreateChild()

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.

Parameters
criteriaObject-specific criteria.
Returns
A new object, populated with default values.

Implemented in Csla.DataPortal< T >.

◆ CreateChildAsync()

Task< object > Csla.IChildDataPortal.CreateChildAsync ( params object??[] criteria)

Starts an asynchronous data portal operation to create a business object.

Parameters
criteriaCriteria describing the object to create.

Implemented in Csla.DataPortal< T >.

◆ FetchChild()

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.

Parameters
criteriaObject-specific criteria.
Returns
An object populated with values from the database.

Implemented in Csla.DataPortal< T >.

◆ FetchChildAsync()

Task< object > Csla.IChildDataPortal.FetchChildAsync ( params object??[] criteria)

Starts an asynchronous data portal operation to create a business object.

Parameters
criteriaCriteria describing the object to create.

Implemented in Csla.DataPortal< T >.

◆ UpdateChild()

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.

Parameters
objA reference to the business object to be updated.
parametersOptional arguments passed to child update methods.
Exceptions
ArgumentNullExceptionobj is null.

Implemented in Csla.DataPortal< T >.

◆ UpdateChildAsync()

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.

Parameters
objObject to update.
parametersAdditional, optional parameters to pass
Exceptions
ArgumentNullExceptionobj is null.

The documentation for this interface was generated from the following file: