1#if !NETSTANDARD2_0 && !NET5_0 && !NET6_0
10using System.EnterpriseServices;
11using System.Runtime.InteropServices;
12using System.Threading.Tasks;
20 [Transaction(TransactionOption.Required, Isolation = System.EnterpriseServices.TransactionIsolationLevel.RepeatableRead)]
21 [EventTrackingEnabled(
true)]
31 portal = dataPortalBroker;
54 public async Task<DataPortalResult>
Create(
57 return await portal.
Create(objectType, criteria, context, isSync).ConfigureAwait(
false);
77 return await portal.
Fetch(objectType, criteria, context, isSync).ConfigureAwait(
false);
96 return await portal.
Update(obj, context, isSync).ConfigureAwait(
false);
115 return await portal.
Delete(objectType, criteria, context, isSync).ConfigureAwait(
false);
Allows the Data Portal call to be intercepted by a custom IDataPortalServer implementation.
Task< DataPortalResult > Update(object obj, DataPortalContext context, bool isSync)
Update a business object.
Task< DataPortalResult > Create(Type objectType, object criteria, DataPortalContext context, bool isSync)
Create a new business object.
Task< DataPortalResult > Fetch(Type objectType, object criteria, DataPortalContext context, bool isSync)
Get an existing business object.
Task< DataPortalResult > Delete(Type objectType, object criteria, DataPortalContext context, bool isSync)
Delete a business object.
Provides consistent context information between the client and server DataPortal objects.
Implements the server-side Serviced DataPortal described in Chapter 4.
async Task< DataPortalResult > Delete(Type objectType, object criteria, DataPortalContext context, bool isSync)
Wraps a Delete call in a ServicedComponent.
ServicedDataPortalRepeatableRead(DataPortalBroker dataPortalBroker)
async Task< DataPortalResult > Update(object obj, DataPortalContext context, bool isSync)
Wraps an Update call in a ServicedComponent.
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.
Interface implemented by server-side data portal components.