Search Results for

    Show / Hide Table of Contents

    Class ConventionSetExtensions

    Extension methods that work in IMigrationExpression and are using IConventionSet implementations.

    Inheritance
    object
    ConventionSetExtensions
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: FluentMigrator.Runner
    Assembly: FluentMigrator.Runner.Core.dll
    Syntax
    public static class ConventionSetExtensions

    Methods

    | Edit this page View Source

    Apply(IEnumerable<IMigrationExpression>, IConventionSet)

    Applies all conventions in a conventionSet to the given expressions.

    Declaration
    public static IEnumerable<IMigrationExpression> Apply(this IEnumerable<IMigrationExpression> expressions, IConventionSet conventionSet)
    Parameters
    Type Name Description
    IEnumerable<IMigrationExpression> expressions

    The expression to apply the convention set to

    IConventionSet conventionSet

    The convention set to apply to the expressions

    Returns
    Type Description
    IEnumerable<IMigrationExpression>

    A sequence of expressions where the conventions have been applied to

    | Edit this page View Source

    Apply<T>(T, IConventionSet)

    Apply all conventions in a conventionSet to the given expression.

    Declaration
    public static T Apply<T>(this T expression, IConventionSet conventionSet) where T : IMigrationExpression
    Parameters
    Type Name Description
    T expression

    The expression to apply the conventionSet to

    IConventionSet conventionSet

    The convention set to apply to the expression

    Returns
    Type Description
    T

    The same or a new instance of the expression. The underlying type of the expression must not be changed.

    Type Parameters
    Name Description
    T

    The expression type, derived from IMigrationExpression

    • 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.