CSLA.NET 6.0.0
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);
62 void SaveComplete(object newObject);
66 event EventHandler<SavedEventArgs> Saved;
67 }
68}
void SaveComplete(object newObject)
INTERNAL CSLA .NET USE ONLY.
EventHandler< SavedEventArgs > Saved
Event raised when an object has been saved.
Definition: ISavable.cs:66
Task SaveAndMergeAsync()
Saves the object to the database, merging the result into the original object graph
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.
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