Class LegacyValidationExtensions
Extension methods for the obsolete ICanBeValidated
Inherited Members
Namespace: FluentMigrator
Assembly: FluentMigrator.Abstractions.dll
Syntax
[Obsolete]
public static class LegacyValidationExtensions
Methods
| Edit this page View SourceCollectErrors(ICanBeValidated, ICollection<string>, IServiceProvider)
Collects all error messages
Declaration
[Obsolete]
public static void CollectErrors(this ICanBeValidated value, ICollection<string> errors, IServiceProvider serviceProvider = null)
Parameters
Type | Name | Description |
---|---|---|
ICanBeValidated | value | The value to collect the errors for |
ICollection<string> | errors | The collected errors |
IServiceProvider | serviceProvider | The service provider used to resolve services |
TryCollectResults(ICanBeValidated, ICollection<ValidationResult>, IServiceProvider, IDictionary<object, object>)
Tries to collect errors using the data annotation validation
Declaration
[Obsolete]
public static bool TryCollectResults(this ICanBeValidated rootValue, ICollection<ValidationResult> results, IServiceProvider serviceProvider, IDictionary<object, object> items = null)
Parameters
Type | Name | Description |
---|---|---|
ICanBeValidated | rootValue | The value to collect the errors for |
ICollection<ValidationResult> | results | The validation results |
IServiceProvider | serviceProvider | The service provider used to resolve services |
IDictionary<object, object> | items | Key/value pairs passed to the validation functions |
Returns
Type | Description |
---|---|
bool |
|