9using System.Collections.Generic;
12using System.Threading.Tasks;
70 T
Fetch(params
object[] criteria);
Dictionary type that is serializable with the SerializationFormatterFactory.GetFormatter().
Interface defining the members of the data portal type.
EventHandler< DataPortalResult< T > > CreateCompleted
Event raised when the operation has completed.
void BeginCreate()
Called by a factory method in a business class or by the UI to create a new object,...
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 BeginDelete(object criteria, object userState)
Called by a factory method in a business class or by the UI to delete 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...
void BeginUpdate(T obj, object userState)
Called by a factory method in a business class or by the UI to update an object.
void BeginCreate(object criteria, object userState)
Called by a factory method in a business class or by the UI to create a new object,...
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.
EventHandler< DataPortalResult< T > > FetchCompleted
Event raised when the operation has completed.
void BeginExecute(T command)
Called by a factory method in a business class or by the UI to execute a command object.
Task< T > FetchAsync(params object[] criteria)
Starts an asynchronous data portal operation to create a business object.
void BeginFetch()
Called by a factory method in a business class or by the UI to retrieve an existing object,...
void BeginFetch(object criteria, object userState)
Called by a factory method in a business class or by the UI to retrieve an existing object,...
Task< T > ExecuteAsync(T command)
Called by a factory method in a business class or by the UI to execute a command object.
void BeginFetch(object criteria)
Called by a factory method in a business class or by the UI to retrieve an existing object,...
Csla.Core.ContextDictionary GlobalContext
Gets a reference to the global context returned from the background thread and/or server.
void BeginExecute(T command, object userState)
Called by a factory method in a business class or by the UI to execute a command object.
void BeginUpdate(T obj)
Called by a factory method in a business class or by the UI to update an 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...
void BeginDelete(object criteria)
Called by a factory method in a business class or by the UI to delete an object.
EventHandler< DataPortalResult< T > > DeleteCompleted
Event raised when the operation has completed.
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...
void BeginCreate(object criteria)
Called by a factory method in a business class or by the UI to create a new object,...
EventHandler< DataPortalResult< T > > ExecuteCompleted
Event indicating an execute operation is complete.
EventHandler< DataPortalResult< T > > UpdateCompleted
Event raised when the operation has completed.