MigrationsSqlGenerator.GetColumnType Yöntem

Tanım

Aşırı Yüklemeler

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

Sağlanan meta veriler verilen bir sütunun depo/veritabanı türünü alır.

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

Sağlanan meta veriler verilen bir sütunun depo/veritabanı türünü alır.

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

Sağlanan meta veriler verilen bir sütunun depo/veritabanı türünü alır.

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

Sağlanan meta veriler verilen bir sütunun depo/veritabanı türünü alır.

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

Parametreler

schema
String

Tabloyu içeren şema veya varsayılan şemayı kullanmak için null.

table
String

Sütunu içeren tablo.

name
String

Sütun adı.

clrType
Type

Sütunun Type eşlenmiş olduğu CLR.

unicode
Nullable<Boolean>

Sütunun Unicode verileri içerip içere içere olmadığını veya geçerli veya belirtilmemişse null olduğunu gösterir.

maxLength
Nullable<Int32>

Sütunda içerilebilir maksimum veri miktarı veya geçerli veya belirtilmemişse null.

fixedLength
Nullable<Boolean>

Verilerin sabit uzunluktaki veriyle kısıtlanmış olup olmadığını gösterir.

rowVersion
Boolean

Bu sütunun otomatik bir eşzamanlılık belirteci olup olmadığını gösterir; örneğin, SQL Server/rowversion.

model
IModel

İşlemler model olmadan mevcutsa null olabilir hedef model.

Döndürülenler

String

Sütunun veritabanı/depo türü.

Şunlara uygulanır

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

Sağlanan meta veriler verilen bir sütunun depo/veritabanı türünü alır.

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

Parametreler

schema
String

Tabloyu içeren şema veya varsayılan şemayı kullanmak için null.

table
String

Sütunu içeren tablo.

name
String

Sütun adı.

clrType
Type

Sütunun Type eşlenmiş olduğu CLR.

unicode
Nullable<Boolean>

Sütunun Unicode verileri içerip içere içere olmadığını veya geçerli veya belirtilmemişse null olduğunu gösterir.

maxLength
Nullable<Int32>

Sütunda içerilebilir maksimum veri miktarı veya geçerli veya belirtilmemişse null.

rowVersion
Boolean

Bu sütunun otomatik bir eşzamanlılık belirteci olup olmadığını gösterir; örneğin, SQL Server/rowversion.

model
IModel

İşlemler model olmadan mevcutsa null olabilir hedef model.

Döndürülenler

String

Sütunun veritabanı/depo türü.

Şunlara uygulanır

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

Sağlanan meta veriler verilen bir sütunun depo/veritabanı türünü alır.

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

Parametreler

schema
String

Tabloyu içeren veya varsayılan null şemayı kullanan şema.

tabletableName
String

Sütunu içeren tablo.

name
String

Sütun adı.

operation
ColumnOperation

Sütun meta verileri.

model
IModel

İşlemler model null olmadan mevcutsa hedef model olabilir.

Döndürülenler

String

Sütunun veritabanı/depo türü.

Şunlara uygulanır