Search Results for

    Show / Hide Table of Contents

    Class LegacyValidationExtensions

    Extension methods for the obsolete ICanBeValidated

    Inheritance
    object
    LegacyValidationExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator
    Assembly: FluentMigrator.Abstractions.dll
    Syntax
    [Obsolete]
    public static class LegacyValidationExtensions

    Methods

    | Edit this page View Source

    CollectErrors(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

    | Edit this page View Source

    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

    true when no errors were found

    • Edit this page
    • View Source
    In this article
    Back to top
    Copyright © 2018 Fluent Migrator Project
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.