Jazyk

SqliteMigrationsSqlGenerator.ColumnDefinition Metoda

Definice

Přetížení

Název Description
ColumnDefinition(AddColumnOperation, IModel, MigrationCommandListBuilder)

Vygeneruje fragment SQL pro definici sloupce v objektu AddColumnOperation.

ColumnDefinition(String, String, String, ColumnOperation, IModel, MigrationCommandListBuilder)

Vygeneruje fragment SQL pro definici sloupce pro daná metadata sloupce.

ColumnDefinition(String, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String, IAnnotatable, IModel, MigrationCommandListBuilder)

Vygeneruje fragment SQL pro definici sloupce pro daná metadata sloupce.

ColumnDefinition(String, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Boolean, Boolean, Object, String, String, IAnnotatable, IModel, MigrationCommandListBuilder)

Vygeneruje fragment SQL pro definici sloupce pro daná metadata sloupce.

ColumnDefinition(AddColumnOperation, IModel, MigrationCommandListBuilder)

Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs

Vygeneruje fragment SQL pro definici sloupce v objektu AddColumnOperation.

protected override void ColumnDefinition(Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.ColumnDefinition : Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub ColumnDefinition (operation As AddColumnOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametry

operation
AddColumnOperation

Operace.

model
IModel

Cílový model, který může být null v případě, že operace existují bez modelu.

builder
MigrationCommandListBuilder

Tvůrce příkazů, který se má použít k přidání fragmentu SQL.

Platí pro

ColumnDefinition(String, String, String, ColumnOperation, IModel, MigrationCommandListBuilder)

Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs

Vygeneruje fragment SQL pro definici sloupce pro daná metadata sloupce.

protected override void ColumnDefinition(string? schema, string table, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel? model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
protected override void ColumnDefinition(string schema, string table, string name, Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation operation, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.ColumnDefinition : string * string * string * Microsoft.EntityFrameworkCore.Migrations.Operations.ColumnOperation * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub ColumnDefinition (schema As String, table As String, name As String, operation As ColumnOperation, model As IModel, builder As MigrationCommandListBuilder)

Parametry

schema
String

Schéma obsahující tabulku nebo null použití výchozího schématu.

table
String

Tabulka, která obsahuje sloupec.

name
String

Název sloupce.

operation
ColumnOperation

Metadata sloupců.

model
IModel

Cílový model, který může být null v případě, že operace existují bez modelu.

builder
MigrationCommandListBuilder

Tvůrce příkazů, který se má použít k přidání fragmentu SQL.

Platí pro

ColumnDefinition(String, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String, IAnnotatable, IModel, MigrationCommandListBuilder)

Zdroj:
SqliteMigrationsSqlGenerator.cs

Vygeneruje fragment SQL pro definici sloupce pro daná metadata sloupce.

protected override void ColumnDefinition(string schema, string table, string name, Type clrType, string type, bool? unicode, int? maxLength, bool rowVersion, bool nullable, object defaultValue, string defaultValueSql, string computedColumnSql, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.ColumnDefinition : string * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub ColumnDefinition (schema As String, table As String, name As String, clrType As Type, type As String, unicode As Nullable(Of Boolean), maxLength As Nullable(Of Integer), rowVersion As Boolean, nullable As Boolean, defaultValue As Object, defaultValueSql As String, computedColumnSql As String, annotatable As IAnnotatable, model As IModel, builder As MigrationCommandListBuilder)

Parametry

schema
String

Schéma obsahující tabulku nebo null použití výchozího schématu.

table
String

Tabulka, která obsahuje sloupec.

name
String

Název sloupce.

clrType
Type

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

type
String

Typ databáze nebo úložiště pro sloupec nebo null pokud nebyl zadán žádný.

unicode
Nullable<Boolean>

Označuje, zda sloupec může obsahovat data Unicode, nebo null pokud není k dispozici nebo není zadán.

maxLength
Nullable<Int32>

Maximální množství dat, která může sloupec obsahovat, nebo null pokud není k dispozici nebo není zadán.

rowVersion
Boolean

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

nullable
Boolean

Určuje, zda sloupec může ukládat NULL hodnoty.

defaultValue
Object

Výchozí hodnota sloupce.

defaultValueSql
String

Výraz SQL, který se má použít pro výchozí omezení sloupce.

computedColumnSql
String

Výraz SQL, který se má použít k výpočtu hodnoty sloupce.

annotatable
IAnnotatable

Slouží MigrationOperation k vyhledání vlastních poznámek.

model
IModel

Cílový model, který může být null v případě, že operace existují bez modelu.

builder
MigrationCommandListBuilder

Tvůrce příkazů, který se má použít k přidání fragmentu SQL.

Platí pro

ColumnDefinition(String, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Nullable<Boolean>, Boolean, Boolean, Object, String, String, IAnnotatable, IModel, MigrationCommandListBuilder)

Zdroj:
SqliteMigrationsSqlGenerator.cs
Zdroj:
SqliteMigrationsSqlGenerator.cs

Vygeneruje fragment SQL pro definici sloupce pro daná metadata sloupce.

protected override void ColumnDefinition(string schema, string table, string name, Type clrType, string type, bool? unicode, int? maxLength, bool? fixedLength, bool rowVersion, bool nullable, object defaultValue, string defaultValueSql, string computedColumnSql, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
override this.ColumnDefinition : string * string * string * Type * string * Nullable<bool> * Nullable<int> * Nullable<bool> * bool * bool * obj * string * string * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overrides Sub ColumnDefinition (schema As String, table As String, name As String, clrType As Type, type As String, unicode As Nullable(Of Boolean), maxLength As Nullable(Of Integer), fixedLength As Nullable(Of Boolean), rowVersion As Boolean, nullable As Boolean, defaultValue As Object, defaultValueSql As String, computedColumnSql As String, annotatable As IAnnotatable, model As IModel, builder As MigrationCommandListBuilder)

Parametry

schema
String

Schéma obsahující tabulku nebo null použití výchozího schématu.

table
String

Tabulka, která obsahuje sloupec.

name
String

Název sloupce.

clrType
Type

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

type
String

Typ databáze nebo úložiště pro sloupec nebo null pokud nebyl zadán žádný.

unicode
Nullable<Boolean>

Označuje, zda sloupec může obsahovat data Unicode, nebo null pokud není k dispozici nebo není zadán.

maxLength
Nullable<Int32>

Maximální množství dat, která může sloupec obsahovat, nebo null pokud není k dispozici nebo není zadán.

fixedLength
Nullable<Boolean>

Určuje, zda je sloupec omezen na data s pevnou délkou.

rowVersion
Boolean

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

nullable
Boolean

Určuje, zda sloupec může ukládat NULL hodnoty.

defaultValue
Object

Výchozí hodnota sloupce.

defaultValueSql
String

Výraz SQL, který se má použít pro výchozí omezení sloupce.

computedColumnSql
String

Výraz SQL, který se má použít k výpočtu hodnoty sloupce.

annotatable
IAnnotatable

Slouží MigrationOperation k vyhledání vlastních poznámek.

model
IModel

Cílový model, který může být null v případě, že operace existují bez modelu.

builder
MigrationCommandListBuilder

Tvůrce příkazů, který se má použít k přidání fragmentu SQL.

Platí pro