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.
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.BusinessBase< T > Csla.BusinessBindingListBase< T, C > Csla.BusinessBindingListBase< T, C > Csla.BusinessListBase< T, C > Csla.BusinessListBase< T, C > Csla.IBusinessBase Csla.IBusinessListBase< C >

Public Member Functions

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

Events

EventHandler< SavedEventArgsSaved
 Event raised when an object has been saved. More...
 

Detailed Description

Specifies that the object can save itself.

Type Constraints
T :class 

Definition at line 18 of file ISavableT.cs.

Member Function Documentation

◆ BeginSave() [1/4]

void Csla.Core.ISavable< T >.BeginSave ( )

Saves the object to the database asynchronously.

The saved event will contain the new object when the save operation completes.

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

◆ BeginSave() [2/4]

void Csla.Core.ISavable< T >.BeginSave ( )

Saves the object to the database asynchronously.

The saved event will contain the new object when the save operation completes.

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

◆ BeginSave() [3/4]

void Csla.Core.ISavable< T >.BeginSave ( object  userState)

Saves the object to the database asynchronously.

The saved event will contain the new object when the save operation completes.

Parameters
userStateUser state object.

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

◆ BeginSave() [4/4]

void Csla.Core.ISavable< T >.BeginSave ( object  userState)

Saves the object to the database asynchronously.

The saved event will contain the new object when the save operation completes.

Parameters
userStateUser state object.

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

◆ Save() [1/4]

object 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/4]

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() [3/4]

object 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 >.

◆ Save() [4/4]

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/4]

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/4]

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() [3/4]

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 >.

◆ SaveAndMergeAsync() [4/4]

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/4]

Task< object > 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/4]

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() [3/4]

Task< object > 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 >.

◆ SaveAsync() [4/4]

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() [1/2]

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

INTERNAL CSLA .NET USE ONLY.

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

◆ SaveComplete() [2/2]

void Csla.Core.ISavable< T >.SaveComplete ( 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.

Definition at line 81 of file ISavable.cs.