CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Server.DataPortal Class Reference

Implements the server-side DataPortal message router as discussed in Chapter 4. More...

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

Public Member Functions

 DataPortal (ApplicationContext applicationContext, IDashboard dashboard, CslaOptions options, IAuthorizeDataPortal authorizer, InterceptorManager interceptors, DataPortalExceptionHandler exceptionHandler, SecurityOptions securityOptions)
 Creates an instance of the type.
async Task< DataPortalResultCreate ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync)
 Create a new business object.
Parameters
objectTypeType of business object to create.
criteriaCriteria object describing business object.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Exceptions
ArgumentNullExceptionobjectType , criteria or context is null.

async Task< DataPortalResultFetch ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync)
 Get an existing business object.
Parameters
objectTypeType of business object to retrieve.
criteriaCriteria object describing business object.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Exceptions
ArgumentNullExceptionobjectType , criteria or context is null.

async Task< DataPortalResultUpdate (ICslaObject obj, DataPortalContext context, bool isSync)
 Update a business object.
Parameters
objBusiness object to update.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Exceptions
ArgumentNullExceptionobj or context is null.

async Task< DataPortalResultDelete ([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType, object criteria, DataPortalContext context, bool isSync)
 Delete a business object.
Parameters
objectTypeType of business object to create.
criteriaCriteria object describing business object.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Exceptions
ArgumentNullExceptionobjectType , criteria or context is null.

Static Public Member Functions

static object GetCriteriaFromArray (params object?[]? criteria)
 Converts a params array to a single serializable criteria value.
static ?? object[] GetCriteriaArray (object? criteria)
 Converts a single serializable criteria value into an array of type object.

Detailed Description

Implements the server-side DataPortal message router as discussed in Chapter 4.

Constructor & Destructor Documentation

◆ DataPortal()

Csla.Server.DataPortal.DataPortal ( ApplicationContext applicationContext,
IDashboard dashboard,
CslaOptions options,
IAuthorizeDataPortal authorizer,
InterceptorManager interceptors,
DataPortalExceptionHandler exceptionHandler,
SecurityOptions securityOptions )
inline

Creates an instance of the type.

Parameters
applicationContext
dashboard
options
authorizer
interceptors
exceptionHandler
securityOptions
Exceptions
ArgumentNullExceptionAny parameter is null.

Member Function Documentation

◆ Create()

async Task< DataPortalResult > Csla.Server.DataPortal.Create ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType,
object criteria,
DataPortalContext context,
bool isSync )
inline

Create a new business object.

Parameters
objectTypeType of business object to create.
criteriaCriteria object describing business object.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Exceptions
ArgumentNullExceptionobjectType , criteria or context is null.

Implements Csla.Server.IDataPortalServer.

◆ Delete()

async Task< DataPortalResult > Csla.Server.DataPortal.Delete ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType,
object criteria,
DataPortalContext context,
bool isSync )
inline

Delete a business object.

Parameters
objectTypeType of business object to create.
criteriaCriteria object describing business object.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Exceptions
ArgumentNullExceptionobjectType , criteria or context is null.

Implements Csla.Server.IDataPortalServer.

◆ Fetch()

async Task< DataPortalResult > Csla.Server.DataPortal.Fetch ( [DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors)] Type objectType,
object criteria,
DataPortalContext context,
bool isSync )
inline

Get an existing business object.

Parameters
objectTypeType of business object to retrieve.
criteriaCriteria object describing business object.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Exceptions
ArgumentNullExceptionobjectType , criteria or context is null.

Implements Csla.Server.IDataPortalServer.

◆ GetCriteriaArray()

?? object[] Csla.Server.DataPortal.GetCriteriaArray ( object? criteria)
inlinestatic

Converts a single serializable criteria value into an array of type object.

Parameters
criteriaSingle serializable criteria value

◆ GetCriteriaFromArray()

object Csla.Server.DataPortal.GetCriteriaFromArray ( params object??[] criteria)
inlinestatic

Converts a params array to a single serializable criteria value.

Parameters
criteriaParams array

◆ Update()

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

Update a business object.

Parameters
objBusiness object to update.
contextServer.DataPortalContext object passed to the server.
isSyncTrue if the client-side proxy should synchronously invoke the server.
Exceptions
ArgumentNullExceptionobj or context is null.

Implements Csla.Server.IDataPortalServer.


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