1#if !NETSTANDARD2_0 && !NET5_0
11using System.ServiceModel;
12using System.ServiceModel.Activation;
13using System.Threading.Tasks;
21 [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)]
22 [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
29 [OperationBehavior(Impersonation = ImpersonationOption.Allowed)]
49 [OperationBehavior(Impersonation = ImpersonationOption.Allowed)]
69 [OperationBehavior(Impersonation = ImpersonationOption.Allowed)]
89 [OperationBehavior(Impersonation = ImpersonationOption.Allowed)]
Implements the server-side DataPortal message router as discussed in Chapter 4.
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.
Request message for creating a new business object.
object Criteria
Criteria object describing business object.
Type ObjectType
Type of business object to create.
Csla.Server.DataPortalContext Context
Data portal context from client.
Request message for deleting a business object.
object Criteria
Criteria object describing business object.
Csla.Server.DataPortalContext Context
Data portal context from client.
Type ObjectType
Type being requested.
Request message for retrieving an existing business object.
Csla.Server.DataPortalContext Context
Data portal context from client.
object Criteria
Criteria object describing business object.
Type ObjectType
The type of the business object to be retrieved.
Request message for updating a business object.
Csla.Server.DataPortalContext Context
Data portal context from client.
object Object
Business object to be updated.
Response message for returning the results of a data portal call.
Exposes server-side DataPortal functionality through WCF.
async Task< WcfResponse > Create(CreateRequest request)
Create a new business object.
async Task< WcfResponse > Fetch(FetchRequest request)
Get an existing business object.
async Task< WcfResponse > Update(UpdateRequest request)
Update a business object.
async Task< WcfResponse > Delete(DeleteRequest request)
Delete a business object.
Defines the service contract for the WCF data portal.