Server-side data portal implementation that invokes an object factory rather than directly interacting with the business object. More...
Public Member Functions | |
| FactoryDataPortal (ApplicationContext applicationContext, IObjectFactoryLoader factoryLoader, IDataPortalExceptionInspector inspector) | |
| Creates an instance of the type. More... | |
| async Task< DataPortalResult > | Create (Type objectType, object criteria, DataPortalContext context, bool isSync) |
| Create a new business object. More... | |
| async Task< DataPortalResult > | Fetch (Type objectType, object criteria, DataPortalContext context, bool isSync) |
| Get an existing business object. More... | |
| async Task< DataPortalResult > | Update (object obj, DataPortalContext context, bool isSync) |
| Update a business object. More... | |
| async Task< DataPortalResult > | Delete (Type objectType, object criteria, DataPortalContext context, bool isSync) |
| Delete a business object. More... | |
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.
| Csla.Server.FactoryDataPortal.FactoryDataPortal | ( | ApplicationContext | applicationContext, |
| IObjectFactoryLoader | factoryLoader, | ||
| IDataPortalExceptionInspector | inspector | ||
| ) |
Creates an instance of the type.
| applicationContext | |
| factoryLoader | |
| inspector |
Definition at line 28 of file FactoryDataPortal.cs.
| async Task< DataPortalResult > Csla.Server.FactoryDataPortal.Create | ( | Type | objectType, |
| object | criteria, | ||
| DataPortalContext | context, | ||
| bool | isSync | ||
| ) |
Create a new business object.
| objectType | Type of business object to create. |
| criteria | Criteria object describing business object. |
| context | Server.DataPortalContext object passed to the server. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 111 of file FactoryDataPortal.cs.
| async Task< DataPortalResult > Csla.Server.FactoryDataPortal.Delete | ( | Type | objectType, |
| object | criteria, | ||
| DataPortalContext | context, | ||
| bool | isSync | ||
| ) |
Delete a business object.
| objectType | Type of business object to create. |
| criteria | Criteria object describing business object. |
| context | Server.DataPortalContext object passed to the server. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 201 of file FactoryDataPortal.cs.
| async Task< DataPortalResult > Csla.Server.FactoryDataPortal.Fetch | ( | Type | objectType, |
| object | criteria, | ||
| DataPortalContext | context, | ||
| bool | isSync | ||
| ) |
Get an existing business object.
| objectType | Type of business object to retrieve. |
| criteria | Criteria object describing business object. |
| context | Server.DataPortalContext object passed to the server. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 140 of file FactoryDataPortal.cs.
| async Task< DataPortalResult > Csla.Server.FactoryDataPortal.Update | ( | object | obj, |
| DataPortalContext | context, | ||
| bool | isSync | ||
| ) |
Update a business object.
| obj | Business object to update. |
| context | Server.DataPortalContext object passed to the server. |
| isSync | True if the client-side proxy should synchronously invoke the server. |
Implements Csla.Server.IDataPortalServer.
Definition at line 168 of file FactoryDataPortal.cs.