From 13e34402f91fae6229b2d9719ddb48ced1d37fbf Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 16 Jul 2018 15:51:33 +0300 Subject: Some fixed and improvements. --- Software/Visual_Studio/Tango.BL/IObservableEntity.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Software/Visual_Studio/Tango.BL/IObservableEntity.cs') 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 /// /// Represents an observable database entity. /// - public interface IObservableEntity : IParameterized + public interface IObservableEntity : INotifyDataErrorInfo, IParameterized { /// /// Occurs after this observable has been saved. @@ -84,13 +85,6 @@ namespace Tango.BL /// Task DeleteCascadeAsync(ObservablesContext context); - /// - /// Performs entity field validation. - /// Will throw an exception with the proper message if one of the fields is invalid. - /// - /// The context. - void Validate(ObservablesContext context); - /// /// Gets the database set containing this entity. /// -- cgit v1.3.1