CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
IDataPortalServer.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="IDataPortalServer.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Interface implemented by server-side data portal</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Threading.Tasks;
10
11namespace Csla.Server
12{
17 public interface IDataPortalServer
18 {
28 Task<DataPortalResult> Create(Type objectType, object criteria, DataPortalContext context, bool isSync);
38 Task<DataPortalResult> Fetch(Type objectType, object criteria, DataPortalContext context, bool isSync);
47 Task<DataPortalResult> Update(object obj, DataPortalContext context, bool isSync);
57 Task<DataPortalResult> Delete(Type objectType, object criteria, DataPortalContext context, bool isSync);
58 }
59}
Provides consistent context information between the client and server DataPortal objects.
Interface implemented by server-side data portal components.
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.