C# Class Csla.Server.FactoryDataPortal

Server-side data portal implementation that invokes an object factory rather than directly interacting with the business object.
Inheritance: IDataPortalServer
Mostra file Open project: MarimerLLC/csla Class Usage Examples

Public Methods

Method Description
Create ( Type objectType, object criteria, Csla.Server.DataPortalContext context, bool isSync ) : Task

Create a new business object.

Delete ( Type objectType, object criteria, Csla.Server.DataPortalContext context, bool isSync ) : Task

Delete a business object.

Fetch ( Type objectType, object criteria, Csla.Server.DataPortalContext context, bool isSync ) : Task

Get an existing business object.

Update ( object obj, Csla.Server.DataPortalContext context, bool isSync ) : Task

Update a business object.

Private Methods

Method Description
InvokeMethod ( string factoryTypeName, DataPortalOperations operation, string methodName, Type objectType, Csla.Server.DataPortalContext context, bool isSync ) : Task
InvokeMethod ( string factoryTypeName, DataPortalOperations operation, string methodName, Type objectType, object e, Csla.Server.DataPortalContext context, bool isSync ) : Task

Method Details

Create() public method

Create a new business object.
public Create ( Type objectType, object criteria, Csla.Server.DataPortalContext context, bool isSync ) : Task
objectType System.Type Type of business object to create.
criteria object Criteria object describing business object.
context Csla.Server.DataPortalContext /// object passed to the server. ///
isSync bool True if the client-side proxy should synchronously invoke the server.
return Task

Delete() public method

Delete a business object.
public Delete ( Type objectType, object criteria, Csla.Server.DataPortalContext context, bool isSync ) : Task
objectType System.Type Type of business object to create.
criteria object Criteria object describing business object.
context Csla.Server.DataPortalContext /// object passed to the server. ///
isSync bool True if the client-side proxy should synchronously invoke the server.
return Task

Fetch() public method

Get an existing business object.
public Fetch ( Type objectType, object criteria, Csla.Server.DataPortalContext context, bool isSync ) : Task
objectType System.Type Type of business object to retrieve.
criteria object Criteria object describing business object.
context Csla.Server.DataPortalContext /// object passed to the server. ///
isSync bool True if the client-side proxy should synchronously invoke the server.
return Task

Update() public method

Update a business object.
public Update ( object obj, Csla.Server.DataPortalContext context, bool isSync ) : Task
obj object Business object to update.
context Csla.Server.DataPortalContext /// object passed to the server. ///
isSync bool True if the client-side proxy should synchronously invoke the server.
return Task