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.
ISavableT.cs
Go to the documentation of this file.
1
2//-----------------------------------------------------------------------
3// <copyright file="ISavable.cs" company="Marimer LLC">
4// Copyright (c) Marimer LLC. All rights reserved.
5// Website: https://cslanet.com
6// </copyright>
7// <summary>Specifies that the object can save</summary>
8//-----------------------------------------------------------------------
9using System;
10using System.Threading.Tasks;
11
12namespace Csla.Core
13{
18 public interface ISavable<T> where T:class
19 {
20#if !(ANDROID || IOS) && !NETFX_CORE
25 T Save();
31 T Save(bool forceUpdate);
32#endif
37 Task<T> SaveAsync();
43 Task<T> SaveAsync(bool forceUpdate);
56 Task SaveAndMergeAsync(bool forceUpdate);
61 [Obsolete]
62 void BeginSave();
70 [Obsolete]
71 void BeginSave(object userState);
78 void SaveComplete(T newObject);
82 event EventHandler<SavedEventArgs> Saved;
83 }
84}
85
Specifies that the object can save itself.
Definition: ISavableT.cs:19
EventHandler< SavedEventArgs > Saved
Event raised when an object has been saved.
Definition: ISavable.cs:81
Task SaveAndMergeAsync()
Saves the object to the database, merging the result into the original object graph
void BeginSave(object userState)
Saves the object to the database asynchronously.
Task< T > SaveAsync()
Saves the object to the database.
T Save()
Saves the object to the database.
void BeginSave()
Saves the object to the database asynchronously.
void SaveComplete(T newObject)
INTERNAL CSLA .NET USE ONLY.
T Save(bool forceUpdate)
Saves the object to the database.
Task SaveAndMergeAsync(bool forceUpdate)
Saves the object to the database, merging the result into the original object graph
Task< T > SaveAsync(bool forceUpdate)
Saves the object to the database.