Class ValidationResultExtensions
Extension methods for IDataValidationResult
Inheritance
System.Object
ValidationResultExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Data.Validation
Assembly: Kephas.Data.dll
Syntax
public static class ValidationResultExtensions
Methods
| Improve this Doc View SourceGetErrors(IDataValidationResult)
Gets only the errors items from this validation result.
Declaration
public static IEnumerable<IDataValidationResultItem> GetErrors(this IDataValidationResult result)
Parameters
Type | Name | Description |
---|---|---|
IDataValidationResult | result | The validation result. |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<IDataValidationResultItem> | An enumration of errors. |
HasErrors(IDataValidationResult)
Gets a value indicating whether the validation result has errors.
Declaration
public static bool HasErrors(this IDataValidationResult result)
Parameters
Type | Name | Description |
---|---|---|
IDataValidationResult | result | The validation result. |
Returns
Type | Description |
---|---|
System.Boolean |
|