diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-12-16 10:33:43 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-12-16 10:33:43 +0200 |
| commit | e8ee7dfb8e166e34c7950e90d5fe9bcf31dc351b (patch) | |
| tree | 0b2fd7e8d0c2dc0bc8706c94c4019cd92bd252bc /Software/Visual_Studio/Tango.BL/ObservableEntity.cs | |
| parent | 5ef0db61993e269caa1d1184ee0be2ae1c6ea393 (diff) | |
| download | Tango-e8ee7dfb8e166e34c7950e90d5fe9bcf31dc351b.tar.gz Tango-e8ee7dfb8e166e34c7950e90d5fe9bcf31dc351b.zip | |
Some fixes.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/ObservableEntity.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/ObservableEntity.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Software/Visual_Studio/Tango.BL/ObservableEntity.cs b/Software/Visual_Studio/Tango.BL/ObservableEntity.cs index e9bb711da..4f03263d9 100644 --- a/Software/Visual_Studio/Tango.BL/ObservableEntity.cs +++ b/Software/Visual_Studio/Tango.BL/ObservableEntity.cs @@ -155,6 +155,15 @@ namespace Tango.BL #region Public Methods /// <summary> + /// Marks this entity as modified so all properties are saved. + /// </summary> + /// <param name="context">The context.</param> + public virtual void MarkModified(ObservablesContext context) + { + context.Entry(this).State = EntityState.Modified; + } + + /// <summary> /// Saves the changes on this entity to database. /// </summary> public virtual void Save(ObservablesContext context) @@ -336,7 +345,7 @@ namespace Tango.BL /// <param name="context">The context.</param> public virtual void Delete(ObservablesContext context) { - + } #endregion |
