CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
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)
 Creates an instance of the type More...
 
async Task< DataPortalResultCreate (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Create a new business object. More...
 
async Task< DataPortalResultFetch (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Get an existing business object. More...
 
async Task< DataPortalResultUpdate (object obj, DataPortalContext context, bool isSync)
 Update a business object. More...
 
async Task< DataPortalResultDelete (Type objectType, object criteria, DataPortalContext context, bool isSync)
 Delete a business object. More...
 

Detailed Description

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

Definition at line 19 of file SimpleDataPortal.cs.

Constructor & Destructor Documentation

◆ SimpleDataPortal()

Csla.Server.SimpleDataPortal.SimpleDataPortal ( ApplicationContext  applicationContext,
IDataPortalActivator  activator,
IDataPortalExceptionInspector  exceptionInspector 
)

Creates an instance of the type

Parameters
applicationContextApplicationContext
activator
exceptionInspector

Definition at line 27 of file SimpleDataPortal.cs.

Member Function Documentation

◆ Create()

async Task< DataPortalResult > Csla.Server.SimpleDataPortal.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 49 of file SimpleDataPortal.cs.

◆ Delete()

async Task< DataPortalResult > Csla.Server.SimpleDataPortal.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 246 of file SimpleDataPortal.cs.

◆ Fetch()

async Task< DataPortalResult > Csla.Server.SimpleDataPortal.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 103 of file SimpleDataPortal.cs.

◆ Update()

async Task< DataPortalResult > Csla.Server.SimpleDataPortal.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 155 of file SimpleDataPortal.cs.