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.Server.ChildDataPortal Class Reference

Invoke data portal methods on child objects. More...

Public Member Functions

 ChildDataPortal (ApplicationContext applicationContext)
 Creates an instance of the type. More...
 
object Create (Type objectType)
 Create a new business object. More...
 
object Create (Type objectType, params object[] parameters)
 Create a new business object. More...
 
async Task< T > CreateAsync< T > ()
 Create a new business object. More...
 
async Task< T > CreateAsync< T > (params object[] parameters)
 Create a new business object. More...
 
object Fetch (Type objectType)
 Get an existing business object. More...
 
object Fetch (Type objectType, params object[] parameters)
 Get an existing business object. More...
 
async Task< T > FetchAsync< T > ()
 Get an existing business object. More...
 
async Task< T > FetchAsync< T > (params object[] parameters)
 Get an existing business object. More...
 
void Update (object obj)
 Update a business object. More...
 
void Update (object obj, params object[] parameters)
 Update a business object. More...
 
async Task UpdateAsync (object obj)
 Update a business object. More...
 
async Task UpdateAsync (object obj, params object[] parameters)
 Update a business object. More...
 
void UpdateAll (object obj)
 Update a business object. More...
 
void UpdateAll (object obj, params object[] parameters)
 Update a business object. More...
 
async Task UpdateAllAsync (object obj)
 Update a business object. More...
 
async Task UpdateAllAsync (object obj, params object[] parameters)
 Update a business object. More...
 

Detailed Description

Invoke data portal methods on child objects.

Definition at line 17 of file ChildDataPortal.cs.

Constructor & Destructor Documentation

◆ ChildDataPortal()

Csla.Server.ChildDataPortal.ChildDataPortal ( ApplicationContext  applicationContext)

Creates an instance of the type.

Parameters
applicationContext

Definition at line 23 of file ChildDataPortal.cs.

Member Function Documentation

◆ Create() [1/2]

object Csla.Server.ChildDataPortal.Create ( Type  objectType)

Create a new business object.

Parameters
objectTypeType of business object to create.

Definition at line 37 of file ChildDataPortal.cs.

◆ Create() [2/2]

object Csla.Server.ChildDataPortal.Create ( Type  objectType,
params object[]  parameters 
)

Create a new business object.

Parameters
objectTypeType of business object to create.
parametersCriteria parameters passed from caller.

Definition at line 56 of file ChildDataPortal.cs.

◆ CreateAsync< T >() [1/2]

async Task< T > Csla.Server.ChildDataPortal.CreateAsync< T > ( )

Create a new business object.

Definition at line 71 of file ChildDataPortal.cs.

◆ CreateAsync< T >() [2/2]

async Task< T > Csla.Server.ChildDataPortal.CreateAsync< T > ( params object[]  parameters)

Create a new business object.

Parameters
parametersCriteria parameters passed from caller.

Definition at line 82 of file ChildDataPortal.cs.

◆ Fetch() [1/2]

object Csla.Server.ChildDataPortal.Fetch ( Type  objectType)

Get an existing business object.

Parameters
objectTypeType of business object to retrieve.

Definition at line 132 of file ChildDataPortal.cs.

◆ Fetch() [2/2]

object Csla.Server.ChildDataPortal.Fetch ( Type  objectType,
params object[]  parameters 
)

Get an existing business object.

Parameters
objectTypeType of business object to retrieve.
parametersCriteria parameters passed from caller.

Definition at line 151 of file ChildDataPortal.cs.

◆ FetchAsync< T >() [1/2]

async Task< T > Csla.Server.ChildDataPortal.FetchAsync< T > ( )

Get an existing business object.

Definition at line 166 of file ChildDataPortal.cs.

◆ FetchAsync< T >() [2/2]

async Task< T > Csla.Server.ChildDataPortal.FetchAsync< T > ( params object[]  parameters)

Get an existing business object.

Parameters
parametersCriteria parameters passed from caller.

Definition at line 177 of file ChildDataPortal.cs.

◆ Update() [1/2]

void Csla.Server.ChildDataPortal.Update ( object  obj)

Update a business object.

Parameters
objBusiness object to update.

Definition at line 225 of file ChildDataPortal.cs.

◆ Update() [2/2]

void Csla.Server.ChildDataPortal.Update ( object  obj,
params object[]  parameters 
)

Update a business object.

Parameters
objBusiness object to update.
parametersParameters passed to method.

Definition at line 244 of file ChildDataPortal.cs.

◆ UpdateAll() [1/2]

void Csla.Server.ChildDataPortal.UpdateAll ( object  obj)

Update a business object.

Include objects which are not dirty.

Parameters
objBusiness object to update.

Definition at line 281 of file ChildDataPortal.cs.

◆ UpdateAll() [2/2]

void Csla.Server.ChildDataPortal.UpdateAll ( object  obj,
params object[]  parameters 
)

Update a business object.

Include objects which are not dirty.

Parameters
objBusiness object to update.
parametersParameters passed to method.

Definition at line 293 of file ChildDataPortal.cs.

◆ UpdateAllAsync() [1/2]

async Task Csla.Server.ChildDataPortal.UpdateAllAsync ( object  obj)

Update a business object.

Include objects which are not dirty.

Parameters
objBusiness object to update.

Definition at line 302 of file ChildDataPortal.cs.

◆ UpdateAllAsync() [2/2]

async Task Csla.Server.ChildDataPortal.UpdateAllAsync ( object  obj,
params object[]  parameters 
)

Update a business object.

Include objects which are not dirty.

Parameters
objBusiness object to update.
parametersParameters passed to method.

Definition at line 314 of file ChildDataPortal.cs.

◆ UpdateAsync() [1/2]

async Task Csla.Server.ChildDataPortal.UpdateAsync ( object  obj)

Update a business object.

Parameters
objBusiness object to update.

Definition at line 260 of file ChildDataPortal.cs.

◆ UpdateAsync() [2/2]

async Task Csla.Server.ChildDataPortal.UpdateAsync ( object  obj,
params object[]  parameters 
)

Update a business object.

Parameters
objBusiness object to update.
parametersParameters passed to method.

Definition at line 272 of file ChildDataPortal.cs.