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.ServicedDataPortalSerializable Class Reference

Implements the server-side Serviced DataPortal described in Chapter 4. More...

Inheritance diagram for Csla.Server.ServicedDataPortalSerializable:
Csla.Server.IDataPortalServer

Public Member Functions

 ServicedDataPortalSerializable (DataPortalBroker dataPortalBroker)
 
async Task< DataPortalResultCreate (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Wraps a Create call in a ServicedComponent. More...
 
async Task< DataPortalResultFetch (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Wraps a Fetch call in a ServicedComponent. More...
 
async Task< DataPortalResultUpdate (object obj, DataPortalContext context, bool isSync)
 Wraps an Update call in a ServicedComponent. More...
 
async Task< DataPortalResultDelete (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Wraps a Delete call in a ServicedComponent. More...
 

Detailed Description

Implements the server-side Serviced DataPortal described in Chapter 4.

Definition at line 23 of file ServicedDataPortalSerializable.cs.

Constructor & Destructor Documentation

◆ ServicedDataPortalSerializable()

Csla.Server.ServicedDataPortalSerializable.ServicedDataPortalSerializable ( DataPortalBroker  dataPortalBroker)

Parameters
dataPortalBroker

Definition at line 29 of file ServicedDataPortalSerializable.cs.

Member Function Documentation

◆ Create()

async Task< DataPortalResult > Csla.Server.ServicedDataPortalSerializable.Create ( Type  objectType,
object  criteria,
DataPortalContext  context,
bool  isSync 
)

Wraps a Create call in a ServicedComponent.

This method delegates to SimpleDataPortal but wraps that call within a COM+ transaction to provide transactional support.

Parameters
objectTypeA Type object indicating the type of business object to be created.
criteriaA custom criteria object providing any extra information that may be required to properly create the object.
contextContext data from the client.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Returns
A populated business object.

Implements Csla.Server.IDataPortalServer.

Definition at line 54 of file ServicedDataPortalSerializable.cs.

◆ Delete()

async Task< DataPortalResult > Csla.Server.ServicedDataPortalSerializable.Delete ( Type  objectType,
object  criteria,
DataPortalContext  context,
bool  isSync 
)

Wraps a Delete call in a ServicedComponent.

This method delegates to SimpleDataPortal but wraps that call within a COM+ transaction to provide transactional support.

Parameters
objectTypeType of business object to create.
criteriaObject-specific criteria.
contextContext data from the client.
isSyncTrue if the client-side proxy should synchronously invoke the server.

Implements Csla.Server.IDataPortalServer.

Definition at line 113 of file ServicedDataPortalSerializable.cs.

◆ Fetch()

async Task< DataPortalResult > Csla.Server.ServicedDataPortalSerializable.Fetch ( Type  objectType,
object  criteria,
DataPortalContext  context,
bool  isSync 
)

Wraps a Fetch call in a ServicedComponent.

This method delegates to SimpleDataPortal but wraps that call within a COM+ transaction to provide transactional support.

Parameters
objectTypeType of business object to retrieve.
criteriaObject-specific criteria.
contextObject containing context data from client.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Returns
A populated business object.

Implements Csla.Server.IDataPortalServer.

Definition at line 75 of file ServicedDataPortalSerializable.cs.

◆ Update()

async Task< DataPortalResult > Csla.Server.ServicedDataPortalSerializable.Update ( object  obj,
DataPortalContext  context,
bool  isSync 
)

Wraps an Update call in a ServicedComponent.

This method delegates to SimpleDataPortal but wraps that call within a COM+ transaction to provide transactional support.

Parameters
objA reference to the object being updated.
contextContext data from the client.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Returns
A reference to the newly updated object.

Implements Csla.Server.IDataPortalServer.

Definition at line 94 of file ServicedDataPortalSerializable.cs.