2using System.Threading.Tasks;
14 _dataPortalSelector = dataPortalSelector;
19 var result = await _dataPortalSelector.Create(objectType, criteria, context, isSync).ConfigureAwait(
false);
28 var result = await _dataPortalSelector.Fetch(objectType, criteria, context, isSync).ConfigureAwait(
false);
37 var result = await _dataPortalSelector.Update(obj, context, isSync).ConfigureAwait(
false);
46 var result = await _dataPortalSelector.Delete(objectType, criteria, context, isSync).ConfigureAwait(
false);
Provides consistent context information between the client and server DataPortal objects.
Selects the appropriate data portal implementation to invoke based on the object and configuration.
async Task< DataPortalResult > Delete(Type objectType, object criteria, DataPortalContext context, bool isSync)
Delete a business object.
async Task< DataPortalResult > Fetch(Type objectType, object criteria, DataPortalContext context, bool isSync)
Get an existing business object.
CustomDataPortalServer(DataPortalSelector dataPortalSelector)
async Task< DataPortalResult > Update(object obj, DataPortalContext context, bool isSync)
Update a business object.
async Task< DataPortalResult > Create(Type objectType, object criteria, DataPortalContext context, bool isSync)
Create a new business object.
Static dictionary-like class that offers similar functionality to GlobalContext This is used in tests...
static void AddOrOverwrite(string key, string value)
Overwrite an item in the test results, to indicate an outcome of a particular operation
Interface implemented by server-side data portal components.