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

Selects the appropriate data portal implementation to invoke based on the object and configuration. More...

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

Public Member Functions

 DataPortalSelector (ApplicationContext applicationContext, SimpleDataPortal simpleDataPortal, FactoryDataPortal factoryDataPortal, Configuration.DataPortalOptions dataPortalOptions)
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

Selects the appropriate data portal implementation to invoke based on the object and configuration.

Constructor & Destructor Documentation

◆ DataPortalSelector()

Csla.Server.DataPortalSelector.DataPortalSelector ( ApplicationContext applicationContext,
SimpleDataPortal simpleDataPortal,
FactoryDataPortal factoryDataPortal,
Configuration.DataPortalOptions dataPortalOptions )
inline
Parameters
applicationContext
simpleDataPortal
factoryDataPortal
dataPortalOptions
Exceptions
ArgumentNullExceptionapplicationContext , simpleDataPortal , factoryDataPortal or dataPortalOptions is null.

Member Function Documentation

◆ Create()

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