CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Server.DataPortalBroker Class Reference

Allows the Data Portal call to be intercepted by a custom IDataPortalServer implementation. More...

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

Public Member Functions

Task< DataPortalResultCreate (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Create a new business object. More...
 
Task< DataPortalResultFetch (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Get an existing business object. More...
 
Task< DataPortalResultUpdate (object obj, DataPortalContext context, bool isSync)
 Update a business object. More...
 
Task< DataPortalResultDelete (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Delete a business object. More...
 

Properties

static IDataPortalServer DataPortalServer [getset]
 Gets or sets a reference to a implementation of IDataPortalServer to be used. More...
 

Detailed Description

Allows the Data Portal call to be intercepted by a custom IDataPortalServer implementation.

Definition at line 17 of file DataPortalBroker.cs.

Member Function Documentation

◆ Create()

Task< DataPortalResult > Csla.Server.DataPortalBroker.Create ( 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.

Implements Csla.Server.IDataPortalServer.

Definition at line 34 of file DataPortalBroker.cs.

◆ Delete()

Task< DataPortalResult > Csla.Server.DataPortalBroker.Delete ( 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.

Implements Csla.Server.IDataPortalServer.

Definition at line 99 of file DataPortalBroker.cs.

◆ Fetch()

Task< DataPortalResult > Csla.Server.DataPortalBroker.Fetch ( 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.

Implements Csla.Server.IDataPortalServer.

Definition at line 56 of file DataPortalBroker.cs.

◆ Update()

Task< DataPortalResult > Csla.Server.DataPortalBroker.Update ( object  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.

Implements Csla.Server.IDataPortalServer.

Definition at line 77 of file DataPortalBroker.cs.

Property Documentation

◆ DataPortalServer

IDataPortalServer Csla.Server.DataPortalBroker.DataPortalServer
staticgetset

Gets or sets a reference to a implementation of IDataPortalServer to be used.

Definition at line 23 of file DataPortalBroker.cs.