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.
ISavable.cs
Go to the documentation of this file.
1//-----------------------------------------------------------------------
2// <copyright file="ISavable.cs" company="Marimer LLC">
3// Copyright (c) Marimer LLC. All rights reserved.
4// Website: https://cslanet.com
5// </copyright>
6// <summary>Specifies that the object can save</summary>
7//-----------------------------------------------------------------------
8using System;
9using System.Threading.Tasks;
10
11namespace Csla.Core
12{
17 public interface ISavable
18 {
19#if !(ANDROID || IOS) && !NETFX_CORE
24 object Save();
30 object Save(bool forceUpdate);
31#endif
36 Task<object> SaveAsync();
42 Task<object> SaveAsync(bool forceUpdate);
55 Task SaveAndMergeAsync(bool forceUpdate);
60 [Obsolete]
61 void BeginSave();
69 [Obsolete]
70 void BeginSave(object userState);
77 void SaveComplete(object newObject);
81 event EventHandler<SavedEventArgs> Saved;
82 }
83}
void SaveComplete(object newObject)
INTERNAL CSLA .NET USE ONLY.
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< object > SaveAsync(bool forceUpdate)
Saves the object to the database.
object Save(bool forceUpdate)
Saves the object to the database.
object Save()
Saves the object to the database.
void BeginSave()
Saves the object to the database asynchronously.
Task< object > SaveAsync()
Saves the object to the database.
Task SaveAndMergeAsync(bool forceUpdate)
Saves the object to the database, merging the result into the original object graph