次の方法で共有


AlterColumnOperation クラス

定義

既存の MigrationOperation 列を変更する 。

public class AlterColumnOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.MigrationOperation
public class AlterColumnOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.IAlterMigrationOperation
[System.Diagnostics.DebuggerDisplay("ALTER TABLE {Table} ALTER COLUMN {Name}")]
public class AlterColumnOperation : Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation, Microsoft.EntityFrameworkCore.Migrations.Operations.IAlterMigrationOperation
type AlterColumnOperation = class
    inherit MigrationOperation
type AlterColumnOperation = class
    inherit ColumnOperation
    interface IAlterMigrationOperation
[<System.Diagnostics.DebuggerDisplay("ALTER TABLE {Table} ALTER COLUMN {Name}")>]
type AlterColumnOperation = class
    inherit ColumnOperation
    interface IAlterMigrationOperation
Public Class AlterColumnOperation
Inherits MigrationOperation
Public Class AlterColumnOperation
Inherits ColumnOperation
Implements IAlterMigrationOperation
継承
AlterColumnOperation
継承
継承
属性
実装

注釈

詳細と例については、「 データベースの移行 」を参照してください。

コンストラクター

AlterColumnOperation()

既存の MigrationOperation 列を変更する 。

プロパティ

ClrType

既存の MigrationOperation 列を変更する 。

ClrType

列にマップされたプロパティまたはプロパティの CLR Type

(継承元 ColumnOperation)
Collation

この列の照合順序。明示的 null に構成されていない場合は 。

(継承元 ColumnOperation)
ColumnType

既存の MigrationOperation 列を変更する 。

ColumnType

列のストア型 ('nvarchar(max)' など)。

(継承元 ColumnOperation)
Comment

この列のコメント

(継承元 ColumnOperation)
ComputedColumnSql

既存の MigrationOperation 列を変更する 。

ComputedColumnSql

列が計算されない場合に、 null 列値の計算に使用する SQL 式。

(継承元 ColumnOperation)
DefaultValue

既存の MigrationOperation 列を変更する 。

DefaultValue

この列に明示的な値を指定せずに挿入された行の既定値。既定値 null がない場合は 。

(継承元 ColumnOperation)
DefaultValueSql

既存の MigrationOperation 列を変更する 。

DefaultValueSql

列の作成時、または null 既定の制約がない場合に、既定の制約として使用する SQL 式。

(継承元 ColumnOperation)
IsDestructiveChange

操作によってデータベース内のデータが失われる可能性があるかどうかを示します。

(継承元 MigrationOperation)
IsFixedLength

列が固定長データに制約されているかどうかを示します。

(継承元 ColumnOperation)
IsNullable

既存の MigrationOperation 列を変更する 。

IsNullable

列に値を格納 null できるかどうかを示します。

(継承元 ColumnOperation)
IsReadOnly

現在のオブジェクトが読み取り専用かどうかを示します。

(継承元 AnnotatableBase)
IsRowVersion

既存の MigrationOperation 列を変更する 。

IsRowVersion

この列が、SQL Serverの 'rowversion'/'timestamp' 列と同じ静脈で自動コンカレンシー トークンとして機能するかどうかを示します。

(継承元 ColumnOperation)
IsStored

このプロパティがマップされる計算列の値がデータベースに格納されるか、読み取られたときに計算されるか。

(継承元 ColumnOperation)
IsUnicode

既存の MigrationOperation 列を変更する 。

IsUnicode

列に Unicode データを含めることができるかどうか、または null これが指定されていないか、この列の種類に適用されないかを示します。

(継承元 ColumnOperation)
Item[String]

指定された名前の値注釈を取得し、存在しない場合は を null 返します。

(継承元 Annotatable)
MaxLength

既存の MigrationOperation 列を変更する 。

MaxLength

列が格納できるデータの最大量。指定されていない場合、または null この列の種類に適用されない場合は 。

(継承元 ColumnOperation)
Name

列の名前。

Name

列の名前。

(継承元 ColumnOperation)
OldColumn

変更前の列を表す操作。

Precision

列が格納できる最大桁数。指定されていない場合、または null この列の種類に適用されない場合は 。

(継承元 ColumnOperation)
Scale

列が格納できる小数点以下の桁数の最大数。指定 null されていないか、この列の種類に適用されない場合は 。

(継承元 ColumnOperation)
Schema

テーブルを含むスキーマ。既定 null のスキーマを使用する必要がある場合は 。

Schema

テーブルを含むスキーマ。既定 null のスキーマを使用する必要がある場合は 。

(継承元 ColumnOperation)
Table

列を含むテーブル。

Table

列を含むテーブル。

(継承元 ColumnOperation)

メソッド

AddAnnotation(String, Annotation)

このオブジェクトに注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

(継承元 Annotatable)
AddAnnotation(String, Object)

このオブジェクトに注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

(継承元 Annotatable)
AddAnnotations(IEnumerable<IAnnotation>)

このオブジェクトに注釈を追加します。

(継承元 AnnotatableBase)
AddAnnotations(IReadOnlyDictionary<String,Object>)

このオブジェクトに注釈を追加します。

(継承元 AnnotatableBase)
AddRuntimeAnnotation(String, Annotation)

このオブジェクトにランタイム注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

(継承元 AnnotatableBase)
AddRuntimeAnnotation(String, Object)

このオブジェクトにランタイム注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

(継承元 AnnotatableBase)
AddRuntimeAnnotations(IEnumerable<Annotation>)

このオブジェクトにランタイム注釈を追加します。

(継承元 AnnotatableBase)
AddRuntimeAnnotations(IReadOnlyDictionary<String,Object>)

このオブジェクトにランタイム注釈を追加します。

(継承元 AnnotatableBase)
CreateAnnotation(String, Object)

新しい注釈を作成します。

(継承元 Annotatable)
CreateRuntimeAnnotation(String, Object)

新しいランタイム注釈を作成します。

(継承元 AnnotatableBase)
EnsureMutable()

モデルが読み取り専用の場合は をスローします。

(継承元 Annotatable)
EnsureReadOnly()

モデルが読み取り専用でない場合は をスローします。

(継承元 Annotatable)
FindAnnotation(String)

指定された名前の注釈を取得し、存在しない場合は を null 返します。

(継承元 Annotatable)
FindRuntimeAnnotation(String)

指定された名前のランタイム注釈を取得し、存在しない場合は を null 返します。

(継承元 AnnotatableBase)
GetAnnotation(String)

指定された名前の注釈を取得し、存在しない場合は をスローします。

(継承元 AnnotatableBase)
GetAnnotations()

現在のオブジェクトのすべての注釈を取得します。

(継承元 Annotatable)
GetOrAddAnnotation(String, Object)

指定した名前の注釈が既に存在する場合は、このオブジェクトに注釈を追加するか、既存の注釈を返します。

(継承元 Annotatable)
GetOrAddRuntimeAnnotationValue<TValue,TArg>(String, Func<TArg,TValue>, TArg)

指定された名前を持つランタイム注釈の値を取得し、存在しない場合は追加します。

(継承元 AnnotatableBase)
GetRuntimeAnnotations()

現在のオブジェクトのすべてのランタイム注釈を取得します。

(継承元 AnnotatableBase)
OnAnnotationSet(String, Annotation, Annotation)

注釈が設定または削除されたときに呼び出されます。

(継承元 Annotatable)
RemoveAnnotation(String)

このオブジェクトから指定された注釈を削除します。

(継承元 Annotatable)
RemoveRuntimeAnnotation(String)

このオブジェクトから指定されたランタイム注釈を削除します。

(継承元 AnnotatableBase)
SetAnnotation(String, Annotation)

指定したキーの下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

(継承元 Annotatable)
SetAnnotation(String, Annotation, Annotation)

指定したキーの下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

(継承元 Annotatable)
SetAnnotation(String, Object)

指定したキーの下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

(継承元 Annotatable)
SetRuntimeAnnotation(String, Annotation, Annotation)

指定したキーの下に格納されているランタイム注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

(継承元 AnnotatableBase)
SetRuntimeAnnotation(String, Object)

指定したキーの下に格納されているランタイム注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

(継承元 AnnotatableBase)

明示的なインターフェイスの実装

IAlterMigrationOperation.OldAnnotations

OldColumn注釈を調べるために公開される 。

IAnnotatable.AddRuntimeAnnotation(String, Object)

このオブジェクトにランタイム注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

(継承元 AnnotatableBase)
IAnnotatable.FindAnnotation(String)

指定された名前の注釈を取得し、存在しない場合は null を返します。

(継承元 Annotatable)
IAnnotatable.FindRuntimeAnnotation(String)

指定された名前のランタイム注釈を取得し、存在しない場合は を null 返します。

(継承元 AnnotatableBase)
IAnnotatable.GetAnnotations()

現在のオブジェクトのすべての注釈を取得します。

(継承元 Annotatable)
IAnnotatable.GetRuntimeAnnotations()

現在のオブジェクトのすべてのランタイム注釈を取得します。

(継承元 AnnotatableBase)
IAnnotatable.RemoveRuntimeAnnotation(String)

このオブジェクトから指定されたランタイム注釈を削除します。

(継承元 AnnotatableBase)
IAnnotatable.SetRuntimeAnnotation(String, Object)

指定したキーの下に格納されているランタイム注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。

(継承元 AnnotatableBase)
IMutableAnnotatable.AddAnnotation(String, Object)

このオブジェクトに注釈を追加します。 指定した名前の注釈が既に存在する場合は をスローします。

(継承元 Annotatable)
IMutableAnnotatable.RemoveAnnotation(String)

このオブジェクトから指定された注釈を削除します。

(継承元 Annotatable)
IMutableAnnotatable.SetOrRemoveAnnotation(String, Object)

指定した名前の下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。 が指定されている場合 null は、既存の注釈を削除します。

(継承元 Annotatable)
IReadOnlyAnnotatable.FindAnnotation(String)

指定された名前の注釈を取得し、存在しない場合は を null 返します。

(継承元 AnnotatableBase)
IReadOnlyAnnotatable.GetAnnotations()

現在のオブジェクトのすべての注釈を取得します。

(継承元 AnnotatableBase)
IReadOnlyAnnotatable.Item[String]

指定した名前の注釈の値を取得し、存在しない場合は を null 返します。

(継承元 AnnotatableBase)

拡張メソッド

AnnotationsToDebugString(IAnnotatable, Int32)

オブジェクトで宣言されているすべての注釈のデバッグ文字列を取得します。

GetAnnotation(IAnnotatable, String)

指定された名前の注釈を取得し、存在しない場合は をスローします。

AddAnnotations(IMutableAnnotatable, IEnumerable<IAnnotation>)

オブジェクトに注釈を追加します。

GetAnnotation(IMutableAnnotatable, String)

指定された名前の注釈を取得し、存在しない場合は をスローします。

GetOrAddAnnotation(IMutableAnnotatable, String, String)

指定したキーを持つ既存の注釈を取得するか、存在しない場合は新しい注釈を追加します。

SetOrRemoveAnnotation(IMutableAnnotatable, String, Object)

指定した名前の下に格納されている注釈を設定します。 指定した名前の注釈が既に存在する場合は、既存の注釈を上書きします。 が指定されている場合 null は、既存の注釈を削除します。

適用対象