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

Server-side data portal implementation that invokes an object factory rather than directly interacting with the business object. More...

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

Public Member Functions

 FactoryDataPortal (ApplicationContext applicationContext, IObjectFactoryLoader factoryLoader, IDataPortalExceptionInspector inspector, 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

Server-side data portal implementation that invokes an object factory rather than directly interacting with the business object.

Constructor & Destructor Documentation

◆ FactoryDataPortal()

Csla.Server.FactoryDataPortal.FactoryDataPortal ( ApplicationContext applicationContext,
IObjectFactoryLoader factoryLoader,
IDataPortalExceptionInspector inspector,
DataPortalOptions dataPortalOptions )
inline

Creates an instance of the type.

Parameters
applicationContext
factoryLoader
inspector
dataPortalOptions
Exceptions
ArgumentNullExceptionapplicationContext , factoryLoader , inspector or dataPortalOptions is null.

Member Function Documentation

◆ Create()

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