次の方法で共有


MigrationsSqlGenerator.GetColumnType メソッド

定義

オーバーロード

GetColumnType(String, String, String, ColumnOperation, IModel)

指定されたメタデータを指定して、列のストア/データベース型を取得します。

GetColumnType(String, String, String, Type, Nullable<Boolean>, Nullable<Int32>, Boolean, IModel)

指定されたメタデータを指定して、列のストア/データベース型を取得します。

GetColumnType(String, String, String, Type, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Boolean, IModel)

指定されたメタデータを指定して、列のストア/データベース型を取得します。

GetColumnType(String, String, String, ColumnOperation, IModel)

指定されたメタデータを指定して、列のストア/データベース型を取得します。

protected virtual string GetColumnType (string schema, string table, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model);
protected virtual string GetColumnType (string schema, string tableName, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model);
protected virtual string? GetColumnType (string? schema, string tableName, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model);
abstract member GetColumnType : string * string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
override this.GetColumnType : string * string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
abstract member GetColumnType : string * string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
override this.GetColumnType : string * string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
Protected Overridable Function GetColumnType (schema As String, table As String, name As String, operation As ColumnOperation, model As IModel) As String
Protected Overridable Function GetColumnType (schema As String, tableName As String, name As String, operation As ColumnOperation, model As IModel) As String

パラメーター

schema
String

テーブルを含むスキーマ、または null 既定のスキーマを使用するスキーマ。

tabletableName
String

列を格納しているテーブル。

name
String

列名。

operation
ColumnOperation

列のメタデータ。

model
IModel

モデル null のない操作が存在する場合のターゲット モデル。

戻り値

列のデータベース/ストア型。

適用対象

GetColumnType(String, String, String, Type, Nullable<Boolean>, Nullable<Int32>, Boolean, IModel)

指定されたメタデータを指定して、列のストア/データベース型を取得します。

protected virtual string GetColumnType (string schema, string table, string name, Type clrType, bool? unicode, int? maxLength, bool rowVersion, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member GetColumnType : string * string * string * Type * Nullable<bool> * Nullable<int> * bool * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
override this.GetColumnType : string * string * string * Type * Nullable<bool> * Nullable<int> * bool * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
Protected Overridable Function GetColumnType (schema As String, table As String, name As String, clrType As Type, unicode As Nullable(Of Boolean), maxLength As Nullable(Of Integer), rowVersion As Boolean, model As IModel) As String

パラメーター

schema
String

テーブルを含むスキーマ、または null 既定のスキーマを使用するスキーマ。

table
String

列を格納しているテーブル。

name
String

列名。

clrType
Type

列がマップされる CLR Type

unicode
Nullable<Boolean>

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

maxLength
Nullable<Int32>

列に含めることができるデータの最大量、または null これが該当しない場合、または指定されていない場合は 。

rowVersion
Boolean

この列が自動コンカレンシー トークン (SQL Server timestamp/rowversion など) であるかどうかを示します。

model
IModel

モデル null のない操作が存在する場合のターゲット モデル。

戻り値

列のデータベース/ストア型。

適用対象

GetColumnType(String, String, String, Type, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Boolean, IModel)

指定されたメタデータを指定して、列のストア/データベース型を取得します。

protected virtual string GetColumnType (string schema, string table, string name, Type clrType, bool? unicode, int? maxLength, bool? fixedLength, bool rowVersion, Microsoft.EntityFrameworkCore.Metadata.IModel model);
abstract member GetColumnType : string * string * string * Type * Nullable<bool> * Nullable<int> * Nullable<bool> * bool * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
override this.GetColumnType : string * string * string * Type * Nullable<bool> * Nullable<int> * Nullable<bool> * bool * Microsoft.EntityFrameworkCore.Metadata.IModel -> string
Protected Overridable Function GetColumnType (schema As String, table As String, name As String, clrType As Type, unicode As Nullable(Of Boolean), maxLength As Nullable(Of Integer), fixedLength As Nullable(Of Boolean), rowVersion As Boolean, model As IModel) As String

パラメーター

schema
String

テーブルを含むスキーマ、または null 既定のスキーマを使用するスキーマ。

table
String

列を格納しているテーブル。

name
String

列名。

clrType
Type

列がマップされる CLR Type

unicode
Nullable<Boolean>

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

maxLength
Nullable<Int32>

列に含めることができるデータの最大量、または null これが該当しない場合、または指定されていない場合は 。

fixedLength
Nullable<Boolean>

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

rowVersion
Boolean

この列が自動コンカレンシー トークン (SQL Server timestamp/rowversion など) であるかどうかを示します。

model
IModel

モデル null のない操作が存在する場合のターゲット モデル。

戻り値

列のデータベース/ストア型。

適用対象