diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-18 18:48:16 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-18 18:48:16 +0200 |
| commit | 95b4e14bc4e06ffb94199f5ec4e0d2d9bebceeff (patch) | |
| tree | de29ed87bd7c7b966d35b6f6bc8b13d65313c88c /Software/Visual_Studio/Tango.Integration/Observables/IObservableEntity.cs | |
| parent | 99136fc92c8b75c3783f543051c065c28961d393 (diff) | |
| download | Tango-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.cs | 12 |
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(); |
