MigrationAttribute Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Indicates that a class is a Migration and provides its identifier.
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class MigrationAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type MigrationAttribute = class
inherit Attribute
Public NotInheritable Class MigrationAttribute
Inherits Attribute
- Inheritance
-
MigrationAttribute
- Attributes
Remarks
See Database migrations for more information and examples.
Constructors
MigrationAttribute(String) |
Creates a new instance of this attribute. |
Properties
Id |
The migration identifier. |
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Entity Framework