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

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

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

Public Member Functions

 SimpleDataPortal (ApplicationContext applicationContext, IDataPortalActivator activator, IDataPortalExceptionInspector exceptionInspector, Configuration.DataPortalOptions dataPortalOptions)
 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.

Detailed Description

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

Constructor & Destructor Documentation

◆ SimpleDataPortal()

Csla.Server.SimpleDataPortal.SimpleDataPortal ( ApplicationContext applicationContext,
IDataPortalActivator activator,
IDataPortalExceptionInspector exceptionInspector,
Configuration.DataPortalOptions dataPortalOptions )
inline

Creates an instance of the type.

Parameters
applicationContextApplicationContext
activator
exceptionInspector
dataPortalOptions
Exceptions
ArgumentNullExceptionapplicationContext , activator , exceptionInspector or dataPortalOptions is null.

Member Function Documentation

◆ Create()

async Task< DataPortalResult > Csla.Server.SimpleDataPortal.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.SimpleDataPortal.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.SimpleDataPortal.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.

◆ Update()

async Task< DataPortalResult > Csla.Server.SimpleDataPortal.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: