10using System.Collections.Generic;
14using System.Threading.Tasks;
41 return await dp.Create(objectType, criteria, context, isSync).ConfigureAwait(
false);
46 return await dp.Create(objectType, criteria, context, isSync).ConfigureAwait(
false);
78 return await dp.Fetch(objectType, criteria, context, isSync).ConfigureAwait(
false);
83 return await dp.Fetch(objectType, criteria, context, isSync).ConfigureAwait(
false);
114 return await dp.Update(obj, context, isSync).ConfigureAwait(
false);
119 return await dp.Update(obj, context, isSync).ConfigureAwait(
false);
151 return await dp.Delete(objectType, criteria, context, isSync).ConfigureAwait(
false);
156 return await dp.Delete(objectType, criteria, context, isSync).ConfigureAwait(
false);
A strongly-typed resource class, for looking up localized strings, etc.
static string FailedOnServer
Looks up a localized string similar to failed on the server.
Provides consistent context information between the client and server DataPortal objects.
ObjectFactoryAttribute FactoryInfo
Gets the current ObjectFactory attribute value (if any).
This exception is returned from the server-side DataPortal and contains the exception and context dat...
Implements the server-side DataPortal message router as discussed in Chapter 4.
Selects the appropriate data portal implementation to invoke based on the object and configuration.
async Task< DataPortalResult > Fetch(Type objectType, object criteria, DataPortalContext context, bool isSync)
Get an existing business object.
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.
async Task< DataPortalResult > Delete(Type objectType, object criteria, DataPortalContext context, bool isSync)
Delete a business object.
Server-side data portal implementation that invokes an object factory rather than directly interactin...
Specifies that the data portal should invoke a factory object rather than the business object.
Implements the server-side DataPortal as discussed in Chapter 4.
Interface implemented by server-side data portal components.