aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.BL/IObservableEntity.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-03-12 17:03:38 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-03-12 17:03:38 +0200
commite75cf513acb73558e948d6012b45f221c718dcf7 (patch)
tree386d3cd79048edbfb91860b6a063fba3c660fec5 /Software/Visual_Studio/Tango.BL/IObservableEntity.cs
parentc923d6611ffa64605879779c490a979e03daa189 (diff)
downloadTango-e75cf513acb73558e948d6012b45f221c718dcf7.tar.gz
Tango-e75cf513acb73558e948d6012b45f221c718dcf7.zip
Added cascade delete for Machine -> Jobs.
Added addresses auto complete to users & roles. Maybe Users & Roles module is complete..
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/IObservableEntity.cs')
-rw-r--r--Software/Visual_Studio/Tango.BL/IObservableEntity.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.BL/IObservableEntity.cs b/Software/Visual_Studio/Tango.BL/IObservableEntity.cs
index 586d4da21..265b51179 100644
--- a/Software/Visual_Studio/Tango.BL/IObservableEntity.cs
+++ b/Software/Visual_Studio/Tango.BL/IObservableEntity.cs
@@ -83,5 +83,12 @@ namespace Tango.BL
/// Deletes this entity using an SQL statement which will cause the database delete cascade effect.
/// </summary>
Task DeleteCascadeAsync(ObservablesContext context);
+
+ /// <summary>
+ /// Performs entity field validation.
+ /// Will throw an exception with the proper message if one of the fields is invalid.
+ /// </summary>
+ /// <param name="context">The context.</param>
+ void Validate(ObservablesContext context);
}
}