diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-16 15:51:33 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-16 15:51:33 +0300 |
| commit | 13e34402f91fae6229b2d9719ddb48ced1d37fbf (patch) | |
| tree | 1b60f7f1f719403ede6f3ebbfe6077ca673fe792 /Software/Visual_Studio/Tango.BL/IObservableEntity.cs | |
| parent | c326bf5d9c1290ecc79739a1938c0a75b276f552 (diff) | |
| download | Tango-13e34402f91fae6229b2d9719ddb48ced1d37fbf.tar.gz Tango-13e34402f91fae6229b2d9719ddb48ced1d37fbf.zip | |
Some fixed and improvements.
Diffstat (limited to 'Software/Visual_Studio/Tango.BL/IObservableEntity.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.BL/IObservableEntity.cs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Software/Visual_Studio/Tango.BL/IObservableEntity.cs b/Software/Visual_Studio/Tango.BL/IObservableEntity.cs index dcb7ad5da..d83f3a6b2 100644 --- a/Software/Visual_Studio/Tango.BL/IObservableEntity.cs +++ b/Software/Visual_Studio/Tango.BL/IObservableEntity.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Data.Entity; @@ -13,7 +14,7 @@ namespace Tango.BL /// <summary> /// Represents an observable database entity. /// </summary> - public interface IObservableEntity : IParameterized + public interface IObservableEntity : INotifyDataErrorInfo, IParameterized { /// <summary> /// Occurs after this observable has been saved. @@ -85,13 +86,6 @@ namespace Tango.BL 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); - - /// <summary> /// Gets the database set containing this entity. /// </summary> /// <typeparam name="T"></typeparam> |
