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.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

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...
 

Properties

static IObjectFactoryLoader FactoryLoader [getset]
 Gets or sets a delegate reference to the method called to create instances of factory objects as requested by the ObjectFactory attribute on a CSLA .NET business object. More...
 

Detailed Description

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

Definition at line 20 of file FactoryDataPortal.cs.

Member Function Documentation

◆ Create()

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

◆ Delete()

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

◆ Fetch()

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

◆ Update()

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

Property Documentation

◆ FactoryLoader

IObjectFactoryLoader Csla.Server.FactoryDataPortal.FactoryLoader
staticgetset

Gets or sets a delegate reference to the method called to create instances of factory objects as requested by the ObjectFactory attribute on a CSLA .NET business object.

Definition at line 32 of file FactoryDataPortal.cs.