CSLA .NET 10.0.0
A home for your business logic
Loading...
Searching...
No Matches
Csla.Core.ISavable< T > Interface Template Reference

Specifies that the object can save itself. More...

Inheritance diagram for Csla.Core.ISavable< T >:
Csla.BusinessBase< T > Csla.BusinessBindingListBase< T, C > Csla.BusinessListBase< T, C >

Public Member Functions

Save ()
 Saves the object to the database.
Save (bool forceUpdate)
 Saves the object to the database.
Task< T > SaveAsync ()
 Saves the object to the database.
Task< T > SaveAsync (bool forceUpdate)
 Saves the object to the database.
Task SaveAndMergeAsync ()
 Saves the object to the database, merging the result into the original object graph.
Task SaveAndMergeAsync (bool forceUpdate)
 Saves the object to the database, merging the result into the original object graph.
void SaveComplete (T newObject)
 INTERNAL CSLA .NET USE ONLY.

Events

EventHandler< SavedEventArgs >? Saved
 Event raised when an object has been saved.

Detailed Description

Specifies that the object can save itself.

Type Constraints
T :class 

Member Function Documentation

◆ Save() [1/2]

T Csla.Core.ISavable< T >.Save ( )

Saves the object to the database.

Returns
A new object containing the saved values.

Implemented in Csla.BusinessBase< T >, Csla.BusinessBindingListBase< T, C >, and Csla.BusinessListBase< T, C >.

◆ Save() [2/2]

T Csla.Core.ISavable< T >.Save ( bool forceUpdate)

Saves the object to the database.

Returns
A new object containing the saved values.
Parameters
forceUpdatetrue to force the save to be an update.

Implemented in Csla.BusinessBase< T >.

◆ SaveAndMergeAsync() [1/2]

Task Csla.Core.ISavable< T >.SaveAndMergeAsync ( )

Saves the object to the database, merging the result into the original object graph.

Returns
A new object containing the saved values.

Implemented in Csla.BusinessBase< T >, Csla.BusinessBindingListBase< T, C >, and Csla.BusinessListBase< T, C >.

◆ SaveAndMergeAsync() [2/2]

Task Csla.Core.ISavable< T >.SaveAndMergeAsync ( bool forceUpdate)

Saves the object to the database, merging the result into the original object graph.

Returns
A new object containing the saved values.
Parameters
forceUpdatetrue to force the save to be an update.

Implemented in Csla.BusinessBase< T >.

◆ SaveAsync() [1/2]

Task< T > Csla.Core.ISavable< T >.SaveAsync ( )

Saves the object to the database.

Returns
A new object containing the saved values.

Implemented in Csla.BusinessBase< T >, Csla.BusinessBindingListBase< T, C >, and Csla.BusinessListBase< T, C >.

◆ SaveAsync() [2/2]

Task< T > Csla.Core.ISavable< T >.SaveAsync ( bool forceUpdate)

Saves the object to the database.

Returns
A new object containing the saved values.
Parameters
forceUpdatetrue to force the save to be an update.

Implemented in Csla.BusinessBase< T >.

◆ SaveComplete()

void Csla.Core.ISavable< T >.SaveComplete ( T newObject)

INTERNAL CSLA .NET USE ONLY.

Parameters
newObjectThe new object returned as a result of the save.

Event Documentation

◆ Saved

EventHandler<SavedEventArgs>? Csla.Core.ISavable< T >.Saved

Event raised when an object has been saved.


The documentation for this interface was generated from the following file: