9using System.Collections.Generic;
12using System.Threading.Tasks;
49 throw new NotSupportedException(
"isSync == true");
57 var objectTypeName = objectType.AssemblyQualifiedName;
58 var resultData = await portal.Create(objectTypeName, criteriaData, contextData);
61 if (response !=
null && response.ErrorData ==
null)
66 else if (response !=
null && response.ErrorData !=
null)
80 if (result.
Error !=
null)
97 throw new NotSupportedException(
"isSync == true");
105 var objectTypeName = objectType.AssemblyQualifiedName;
106 var resultData = await portal.Fetch(objectTypeName, criteriaData, contextData);
109 if (response !=
null && response.ErrorData ==
null)
114 else if (response !=
null && response.ErrorData !=
null)
128 if (result.
Error !=
null)
144 throw new NotSupportedException(
"isSync == true");
150 var resultData = await portal.Update(objectData, contextData);
153 if (response !=
null && response.ErrorData ==
null)
158 else if (response !=
null && response.ErrorData !=
null)
172 if (result.
Error !=
null)
189 throw new NotSupportedException(
"isSync == true");
197 var objectTypeName = objectType.AssemblyQualifiedName;
198 var resultData = await portal.Delete(objectTypeName, criteriaData, contextData);
201 if (response !=
null && response.ErrorData ==
null)
206 else if (response !=
null && response.ErrorData !=
null)
220 if (result.
Error !=
null)
Brokered assembly entry point for the data portal.
Dictionary type that is serializable with the SerializationFormatterFactory.GetFormatter().
Implements a data portal proxy to relay data portal calls to an application server hosted locally in ...
async Task< DataPortalResult > Update(object obj, DataPortalContext context, bool isSync)
Called by the client-side DataPortal to update a business object.
async Task< DataPortalResult > Delete(Type objectType, object criteria, DataPortalContext context, bool isSync)
Called by the client-side DataPortal to delete a business object.
async Task< DataPortalResult > Create(Type objectType, object criteria, DataPortalContext context, bool isSync)
Called by the client-side DataPortal to create a new business object.
async Task< DataPortalResult > Fetch(Type objectType, object criteria, DataPortalContext context, bool isSync)
Called by the client-side DataPortal to fetch a business object.
bool IsServerRemote
Get a value indicating whether this proxy will invoke a remote data portal server,...
Class used as a wrapper for criteria based requests that use primitives
This exception is returned for any errors occurring during the server-side DataPortal invocation.
DataPortalResult defines the results of DataPortal operation.
Exception Error
Error that occurred during the DataPotal call.
Provides consistent context information between the client and server DataPortal objects.
Interface implemented by client-side data portal proxy objects.
Interface to be implemented by any object that supports serialization by the SerializationFormatterFa...