CSLA.NET 6.0.0
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
IDataPortalT.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="IDataPortalT.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Interface defining the members of the data portal type</summary>
7//-----------------------------------------------------------------------
8using System.Threading.Tasks;
9
10namespace Csla
11{
16 public interface IDataPortal<T>
17 {
25 Task<T> CreateAsync(params object[] criteria);
33 Task<T> FetchAsync(params object[] criteria);
39 Task<T> UpdateAsync(T obj);
45 Task<T> ExecuteAsync(T command);
51 Task DeleteAsync(params object[] criteria);
59 T Create(params object[] criteria);
66 T Fetch(params object[] criteria);
87 T Execute(T obj);
100 T Update(T obj);
106 void Delete(params object[] criteria);
107 }
108}
Interface defining the members of the data portal type.
Definition: IDataPortalT.cs:17
Task DeleteAsync(params object[] criteria)
Called by a factory method in a business class or by the UI to delete an object.
Task< T > UpdateAsync(T obj)
Called by a factory method in a business class or by the UI to update an object.
void Delete(params object[] criteria)
Called by a Shared (static in C#) method in the business class to cause immediate deletion of a speci...
T Execute(T obj)
Called to execute a Command object on the server.
T Update(T obj)
Called by the business object's Save() method to insert, update or delete an object in the database.
Task< T > FetchAsync(params object[] criteria)
Starts an asynchronous data portal operation to create a business object.
Task< T > ExecuteAsync(T command)
Called by a factory method in a business class or by the UI to execute a command object.
T Fetch(params object[] criteria)
Called by a factory method in a business class to retrieve an object, which is loaded with values fro...
Task< T > CreateAsync(params object[] criteria)
Starts an asynchronous data portal operation to create a business object.
T Create(params object[] criteria)
Called by a factory method in a business class to create a new object, which is loaded with default v...