MigrationAttribute 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指示类是一个 Migration 并提供其标识符。
[System.AttributeUsage(System.AttributeTargets.Class)]
public sealed class MigrationAttribute : Attribute
[System.AttributeUsage(System.AttributeTargets.Class)]
[System.Runtime.CompilerServices.Nullable(0)]
public sealed class MigrationAttribute : Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
type MigrationAttribute = class
inherit Attribute
[<System.AttributeUsage(System.AttributeTargets.Class)>]
[<System.Runtime.CompilerServices.Nullable(0)>]
type MigrationAttribute = class
inherit Attribute
Public NotInheritable Class MigrationAttribute
Inherits Attribute
- 继承
-
MigrationAttribute
- 特性
注解
有关详细信息和示例,请参阅 数据库迁移 。