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.
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);
63 void SaveComplete(T newObject);
67 event EventHandler<SavedEventArgs> Saved;
68 }
69}
70
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:66
Task SaveAndMergeAsync()
Saves the object to the database, merging the result into the original object graph
Task< T > SaveAsync()
Saves the object to the database.
T Save()
Saves the object to the database.
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.