1#if !NETFX_CORE && !MONO && !(ANDROID || IOS) && !NETSTANDARD2_0 && !NET5_0
10using System.EnterpriseServices;
11using System.Runtime.InteropServices;
12using System.Threading.Tasks;
20 [Transaction(TransactionOption.Required, Isolation = System.EnterpriseServices.TransactionIsolationLevel.ReadCommitted)]
21 [EventTrackingEnabled(
true)]
43 public async Task<DataPortalResult>
Create(
47 return await portal.Create(objectType, criteria, context, isSync).ConfigureAwait(
false);
68 return await portal.Fetch(objectType, criteria, context, isSync).ConfigureAwait(
false);
88 return await portal.Update(obj, context, isSync).ConfigureAwait(
false);
108 return await portal.Delete(objectType, criteria, context, isSync).ConfigureAwait(
false);
Allows the Data Portal call to be intercepted by a custom IDataPortalServer implementation.
Provides consistent context information between the client and server DataPortal objects.
Implements the server-side Serviced DataPortal described in Chapter 4.
async Task< DataPortalResult > Fetch(Type objectType, object criteria, DataPortalContext context, bool isSync)
Wraps a Fetch call in a ServicedComponent.
async Task< DataPortalResult > Create(Type objectType, object criteria, DataPortalContext context, bool isSync)
Wraps a Create call in a ServicedComponent.
async Task< DataPortalResult > Delete(Type objectType, object criteria, DataPortalContext context, bool isSync)
Wraps a Delete call in a ServicedComponent.
async Task< DataPortalResult > Update(object obj, DataPortalContext context, bool isSync)
Wraps an Update call in a ServicedComponent.
Interface implemented by server-side data portal components.