CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
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)
Task< DataPortalResultCreate (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Wraps a Create call in a ServicedComponent.
Task< DataPortalResultFetch (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Wraps a Fetch call in a ServicedComponent.
Task< DataPortalResultUpdate (ICslaObject obj, DataPortalContext context, bool isSync)
 Wraps an Update call in a ServicedComponent.
Task< DataPortalResultDelete (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Wraps a Delete call in a ServicedComponent.

Detailed Description

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

Constructor & Destructor Documentation

◆ ServicedDataPortalSerializable()

Csla.Server.ServicedDataPortalSerializable.ServicedDataPortalSerializable ( DataPortalBroker dataPortalBroker)
inline
Parameters
dataPortalBroker
Exceptions
ArgumentNullExceptiondataPortalBroker is null.

Member Function Documentation

◆ Create()

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

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 System.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.
Exceptions
ArgumentNullExceptionobjectType , criteria or context is null.

Implements Csla.Server.IDataPortalServer.

◆ Delete()

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

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.
Exceptions
ArgumentNullExceptionobjectType , criteria or context is null.

Implements Csla.Server.IDataPortalServer.

◆ Fetch()

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

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.
Exceptions
ArgumentNullExceptionobjectType , criteria or context is null.

Implements Csla.Server.IDataPortalServer.

◆ Update()

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

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.
Exceptions
ArgumentNullExceptionobj or context is null.

Implements Csla.Server.IDataPortalServer.


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