SqliteMigrationsSqlGenerator.ColumnDefinition Metoda

Definicja

Przeciążenia

ColumnDefinition(AddColumnOperation, IModel, MigrationCommandListBuilder)

Generuje fragment SQL definicji kolumny w obiekcie AddColumnOperation.

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

Generuje fragment SQL definicji kolumny dla danych metadanych kolumny.

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

Generuje fragment SQL definicji kolumny dla danych metadanych kolumny.

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

Generuje fragment SQL definicji kolumny dla danych metadanych kolumny.

ColumnDefinition(AddColumnOperation, IModel, MigrationCommandListBuilder)

Generuje fragment SQL definicji kolumny w obiekcie 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

Operacja.

model
IModel

Model docelowy, który może mieć wartość null , jeśli operacje istnieją bez modelu.

builder
MigrationCommandListBuilder

Konstruktor poleceń używany do dodawania fragmentu SQL.

Dotyczy

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

Generuje fragment SQL definicji kolumny dla danych metadanych kolumny.

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

Schemat zawierający tabelę lub null do użycia schematu domyślnego.

table
String

Tabela zawierająca kolumnę.

name
String

Nazwa kolumny.

operation
ColumnOperation

Metadane kolumny.

model
IModel

Model docelowy, który może mieć wartość null , jeśli operacje istnieją bez modelu.

builder
MigrationCommandListBuilder

Konstruktor poleceń używany do dodawania fragmentu SQL.

Dotyczy

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

Generuje fragment SQL definicji kolumny dla danych metadanych kolumny.

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

Schemat zawierający tabelę lub null do użycia schematu domyślnego.

table
String

Tabela zawierająca kolumnę.

name
String

Nazwa kolumny.

clrType
Type

ClR Type , na który jest mapowana kolumna.

type
String

Typ bazy danych/magazynu dla kolumny lub null jeśli nie został określony.

unicode
Nullable<Boolean>

Wskazuje, czy kolumna może zawierać dane Unicode, czy null nie ma zastosowania, czy nie jest określona.

maxLength
Nullable<Int32>

Maksymalna ilość danych, które może zawierać kolumna lub null jeśli nie ma to zastosowania lub nie jest określona.

rowVersion
Boolean

Wskazuje, czy ta kolumna jest automatycznym tokenem współbieżności, takim jak sygnatura czasowa SQL Server/rowversion.

nullable
Boolean

Wskazuje, czy kolumna może przechowywać NULL wartości.

defaultValue
Object

Wartość domyślna kolumny.

defaultValueSql
String

Wyrażenie SQL, które ma być używane dla domyślnego ograniczenia kolumny.

computedColumnSql
String

Wyrażenie SQL używane do obliczania wartości kolumny.

annotatable
IAnnotatable

Element MigrationOperation do znajdowania dowolnych adnotacji niestandardowych.

model
IModel

Model docelowy, który może mieć wartość null , jeśli operacje istnieją bez modelu.

builder
MigrationCommandListBuilder

Konstruktor poleceń używany do dodawania fragmentu SQL.

Dotyczy

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

Generuje fragment SQL definicji kolumny dla danych metadanych kolumny.

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

Schemat zawierający tabelę lub null do użycia schematu domyślnego.

table
String

Tabela zawierająca kolumnę.

name
String

Nazwa kolumny.

clrType
Type

ClR Type , na który jest mapowana kolumna.

type
String

Typ bazy danych/magazynu dla kolumny lub null jeśli nie został określony.

unicode
Nullable<Boolean>

Wskazuje, czy kolumna może zawierać dane Unicode, czy null nie ma zastosowania, czy nie jest określona.

maxLength
Nullable<Int32>

Maksymalna ilość danych, które może zawierać kolumna lub null jeśli nie ma to zastosowania lub nie jest określona.

fixedLength
Nullable<Boolean>

Wskazuje, czy kolumna jest ograniczona do danych o stałej długości.

rowVersion
Boolean

Wskazuje, czy ta kolumna jest automatycznym tokenem współbieżności, takim jak sygnatura czasowa SQL Server/rowversion.

nullable
Boolean

Wskazuje, czy kolumna może przechowywać NULL wartości.

defaultValue
Object

Wartość domyślna kolumny.

defaultValueSql
String

Wyrażenie SQL, które ma być używane dla domyślnego ograniczenia kolumny.

computedColumnSql
String

Wyrażenie SQL używane do obliczania wartości kolumny.

annotatable
IAnnotatable

Element MigrationOperation do znajdowania dowolnych adnotacji niestandardowych.

model
IModel

Model docelowy, który może mieć wartość null , jeśli operacje istnieją bez modelu.

builder
MigrationCommandListBuilder

Konstruktor poleceń używany do dodawania fragmentu SQL.

Dotyczy