CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.IChildDataPortal< T > Interface Template Reference

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

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

Public Member Functions

Task< object > CreateChildAsync (params object[] criteria)
 Starts an asynchronous data portal operation to create a business object. More...
 
Task< object > FetchChildAsync (params object[] criteria)
 Starts an asynchronous data portal operation to create a business object. More...
 
Task UpdateChildAsync (object obj, params object[] parameters)
 Called by a factory method in a business class or by the UI to update an object. More...
 
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. More...
 
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. More...
 
void UpdateChild (object obj, params object[] parameters)
 Called by the business object's Save() method to insert, update or delete an object in the database. More...
 
Task< T > CreateChildAsync (params object[] criteria)
 Starts an asynchronous data portal operation to create a business object. More...
 
Task< T > FetchChildAsync (params object[] criteria)
 Starts an asynchronous data portal operation to create a business object. More...
 
Task UpdateChildAsync (T obj, params object[] parameters)
 Called by a factory method in a business class or by the UI to update an object. More...
 
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. More...
 
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. More...
 
void UpdateChild (T obj, params object[] parameters)
 Called by the business object's Save() method to insert, update or delete an object in the database. More...
 

Detailed Description

Interface defining the members of the child data portal type.

Template Parameters
T

Definition at line 16 of file IChildDataPortalT.cs.

Member Function Documentation

◆ CreateChild() [1/2]

object Csla.IChildDataPortal< 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
criteriaObject-specific criteria.
Returns
A new object, populated with default values.

Implemented in Csla.DataPortal< T >.

◆ CreateChild() [2/2]

T Csla.IChildDataPortal< 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
criteriaObject-specific criteria.
Returns
A new object, populated with default values.

Implemented in Csla.DataPortal< T >.

◆ CreateChildAsync() [1/2]

Task< object > Csla.IChildDataPortal< T >.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 >.

◆ CreateChildAsync() [2/2]

Task< T > Csla.IChildDataPortal< T >.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() [1/2]

object Csla.IChildDataPortal< 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
criteriaObject-specific criteria.
Returns
An object populated with values from the database.

Implemented in Csla.DataPortal< T >.

◆ FetchChild() [2/2]

T Csla.IChildDataPortal< 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
criteriaObject-specific criteria.
Returns
An object populated with values from the database.

Implemented in Csla.DataPortal< T >.

◆ FetchChildAsync() [1/2]

Task< object > Csla.IChildDataPortal< T >.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 >.

◆ FetchChildAsync() [2/2]

Task< T > Csla.IChildDataPortal< T >.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() [1/2]

void Csla.IChildDataPortal< T >.UpdateChild ( object  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.
parameters
Returns
A reference to the updated business object.

Implemented in Csla.DataPortal< T >.

◆ UpdateChild() [2/2]

void Csla.IChildDataPortal< T >.UpdateChild ( 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.
parameters
Returns
A reference to the updated business object.

Implemented in Csla.DataPortal< T >.

◆ UpdateChildAsync() [1/2]

Task Csla.IChildDataPortal< T >.UpdateChildAsync ( object  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

◆ UpdateChildAsync() [2/2]

Task Csla.IChildDataPortal< T >.UpdateChildAsync ( 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

Implemented in Csla.DataPortal< T >.