Язык

MigrationAttribute Класс

Определение

Указывает, что класс является и 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
Атрибуты

Комментарии

Дополнительные сведения и примеры см. в разделе "Миграция баз данных ".

Конструкторы

Имя. Описание
MigrationAttribute(String)

Создает новый экземпляр этого атрибута.

Свойства

Имя. Описание
Id

Идентификатор миграции.

Применяется к