aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs')
-rw-r--r--Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs b/Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs
index 0439d57b0..eb16d150d 100644
--- a/Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs
+++ b/Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs
@@ -46,6 +46,12 @@ namespace Tango.Integration.Observables
void Save();
/// <summary>
+ /// Saves the changes on this entity to database using the specified context.
+ /// </summary>
+ /// <param name="context">The context.</param>
+ void Save(DbContext context);
+
+ /// <summary>
/// Attaches this observable to the proper DbSet.
/// </summary>
void Attach();
@@ -62,6 +68,12 @@ namespace Tango.Integration.Observables
Task SaveAsync();
/// <summary>
+ /// Saves the changes on this entity to database asynchronously.
+ /// </summary>
+ /// <returns></returns>
+ Task SaveAsync(DbContext context);
+
+ /// <summary>
/// Deletes this entity from the database.
/// </summary>
void Delete();