Class ConventionSetExtensions
Extension methods that work in IMigrationExpression and are using IConventionSet implementations.
Inherited Members
Namespace: FluentMigrator.Runner
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public static class ConventionSetExtensions
Methods
| Edit this page View SourceApply(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 |
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 |
IConventionSet | conventionSet | The convention set to apply to the |
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 |