Class TagsAttribute
Used to filter which migrations are run.
Implements
Inherited Members
Namespace: FluentMigrator
Assembly: FluentMigrator.Abstractions.dll
Syntax
[AttributeUsage(AttributeTargets.Class|AttributeTargets.Interface, AllowMultiple = true)]
public class TagsAttribute : Attribute, _Attribute
Constructors
| Edit this page View SourceTagsAttribute(TagBehavior, params string[])
Initializes a new instance of the TagsAttribute class.
Declaration
public TagsAttribute(TagBehavior behavior, params string[] tagNames)
Parameters
Type | Name | Description |
---|---|---|
TagBehavior | behavior | The behavior of the runner when evaluating |
string[] | tagNames | The names of the tags that are evaluated by the runner. |
TagsAttribute(string)
Initializes a new instance of the TagsAttribute class.
Declaration
public TagsAttribute(string tagName1)
Parameters
Type | Name | Description |
---|---|---|
string | tagName1 | The tag that is evaluated by the runner. |
TagsAttribute(string, string)
Initializes a new instance of the TagsAttribute class.
Declaration
public TagsAttribute(string tagName1, string tagName2)
Parameters
Type | Name | Description |
---|---|---|
string | tagName1 | The first tag that is evaluated by the runner. |
string | tagName2 | The second tag that is evaluated by the runner. |
TagsAttribute(string, string, string)
Initializes a new instance of the TagsAttribute class.
Declaration
public TagsAttribute(string tagName1, string tagName2, string tagName3)
Parameters
Type | Name | Description |
---|---|---|
string | tagName1 | The first tag that is evaluated by the runner. |
string | tagName2 | The second tag that is evaluated by the runner. |
string | tagName3 | The third tag that is evaluated by the runner. |
TagsAttribute(string, string, string, string)
Initializes a new instance of the TagsAttribute class.
Declaration
public TagsAttribute(string tagName1, string tagName2, string tagName3, string tagName4)
Parameters
Type | Name | Description |
---|---|---|
string | tagName1 | The first tag that is evaluated by the runner. |
string | tagName2 | The second tag that is evaluated by the runner. |
string | tagName3 | The third tag that is evaluated by the runner. |
string | tagName4 | The fourth tag that is evaluated by the runner. |
TagsAttribute(params string[])
Initializes a new instance of the TagsAttribute class.
Declaration
public TagsAttribute(params string[] tagNames)
Parameters
Type | Name | Description |
---|---|---|
string[] | tagNames | The names of the tags that are evaluated by the runner. |
Properties
| Edit this page View SourceBehavior
Gets the behavior of the runner when evaluating TagNames.
Declaration
public TagBehavior Behavior { get; }
Property Value
Type | Description |
---|---|
TagBehavior |
TagNames
Gets the names of the tags that are evaluated by the runner.
Declaration
public string[] TagNames { get; }
Property Value
Type | Description |
---|---|
string[] |