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.
IChildDataPortalT.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="IChildDataPortalT.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 child data portal type</summary>
7//-----------------------------------------------------------------------
8using System.Threading.Tasks;
9
10namespace Csla
11{
16 public interface IChildDataPortal<T>
17 {
25 Task<T> CreateChildAsync(params object[] criteria);
33 Task<T> FetchChildAsync(params object[] criteria);
40 Task UpdateChildAsync(T obj, params object[] parameters);
48 T CreateChild(params object[] criteria);
55 T FetchChild(params object[] criteria);
69 void UpdateChild(T obj, params object[] parameters);
70 }
71}
Interface defining the members of the child data portal type.
Task< T > FetchChildAsync(params object[] criteria)
Starts an asynchronous data portal operation to create a business object.
T FetchChild(params object[] criteria)
Called by a factory method in a business class to retrieve an object, which is loaded with values fro...
T CreateChild(params object[] criteria)
Called by a factory method in a business class to create a new object, which is loaded with default v...
Task< T > CreateChildAsync(params object[] criteria)
Starts an asynchronous data portal operation to create a business object.
Task UpdateChildAsync(T obj, params object[] parameters)
Called by a factory method in a business class or by the UI to update an object.
void UpdateChild(T obj, params object[] parameters)
Called by the business object's Save() method to insert, update or delete an object in the database.