Sdílet prostřednictvím


MigrationsSqlGenerator.GetColumnType Metoda

Definice

Přetížení

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

Získá typ úložiště nebo databáze sloupce zadanou metadata.

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

Získá typ úložiště nebo databáze sloupce zadanou metadata.

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

Získá typ úložiště nebo databáze sloupce zadanou metadata.

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

Získá typ úložiště nebo databáze sloupce zadanou metadata.

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

Parametry

schema
String

Schéma, které obsahuje tabulku, nebo null použít výchozí schéma.

tabletableName
String

Tabulka, která obsahuje sloupec.

name
String

Název sloupce.

operation
ColumnOperation

Metadata sloupce.

model
IModel

Cílový model, který může být null , pokud operace existují bez modelu.

Návraty

Typ databáze nebo úložiště pro sloupec.

Platí pro

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

Získá typ úložiště nebo databáze sloupce zadanou metadata.

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

Parametry

schema
String

Schéma, které obsahuje tabulku, nebo null použít výchozí schéma.

table
String

Tabulka, která obsahuje sloupec.

name
String

Název sloupce.

clrType
Type

ClR Type , na který je sloupec namapován.

unicode
Nullable<Boolean>

Určuje, jestli sloupec může obsahovat data Unicode, nebo null jestli se to nedá použít nebo není zadané.

maxLength
Nullable<Int32>

Maximální množství dat, které může sloupec obsahovat, nebo null jestli se to nedá použít nebo není zadané.

rowVersion
Boolean

Označuje, jestli je tento sloupec tokenem automatické souběžnosti, například SQL Server časové razítko/rowversion.

model
IModel

Cílový model, který může být null , pokud operace existují bez modelu.

Návraty

Typ databáze nebo úložiště pro sloupec.

Platí pro

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

Získá typ úložiště nebo databáze sloupce zadanou metadata.

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

Parametry

schema
String

Schéma, které obsahuje tabulku, nebo null použít výchozí schéma.

table
String

Tabulka, která obsahuje sloupec.

name
String

Název sloupce.

clrType
Type

ClR Type , na který je sloupec namapován.

unicode
Nullable<Boolean>

Určuje, jestli sloupec může obsahovat data Unicode, nebo null jestli se to nedá použít nebo není zadané.

maxLength
Nullable<Int32>

Maximální množství dat, které může sloupec obsahovat, nebo null jestli se to nedá použít nebo není zadané.

fixedLength
Nullable<Boolean>

Určuje, zda jsou data omezena na data s pevnou délkou.

rowVersion
Boolean

Označuje, jestli je tento sloupec tokenem automatické souběžnosti, například SQL Server časové razítko/rowversion.

model
IModel

Cílový model, který může být null , pokud operace existují bez modelu.

Návraty

Typ databáze nebo úložiště pro sloupec.

Platí pro