aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-02-18 18:48:16 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-02-18 18:48:16 +0200
commit95b4e14bc4e06ffb94199f5ec4e0d2d9bebceeff (patch)
treede29ed87bd7c7b966d35b6f6bc8b13d65313c88c /Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs
parent99136fc92c8b75c3783f543051c065c28961d393 (diff)
downloadTango-95b4e14bc4e06ffb94199f5ec4e0d2d9bebceeff.tar.gz
Tango-95b4e14bc4e06ffb94199f5ec4e0d2d9bebceeff.zip
Working on new developer module.
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();