SqlServerMigrationsSqlGenerator.ColumnDefinition Metoda

Definicja

Przeciążenia

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

Generuje fragment SQL dla definicji kolumny dla podanych 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 dla definicji kolumny dla podanych metadanych kolumny.

ColumnDefinition(String, String, String, Type, String, Nullable<Boolean>, Nullable<Int32>, Boolean, Boolean, Object, String, String, Boolean, IAnnotatable, IModel, MigrationCommandListBuilder)
Przestarzałe.

Generuje fragment SQL dla definicji kolumny dla podanych metadanych kolumny.

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

Generuje fragment SQL dla definicji kolumny dla podanych metadanych kolumny.

ColumnDefinition(AddColumnOperation, IModel, MigrationCommandListBuilder)

Generuje fragment SQL dla definicji kolumny w elemecie AddColumnOperation.

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

Generuje fragment SQL dla definicji kolumny dla podanych metadanych kolumny.

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

Generuje fragment SQL dla definicji kolumny dla podanych metadanych kolumny.

protected virtual 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, bool identity, 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 * bool * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable 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, identity As Boolean, 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 , do którego 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 też 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 do użycia dla domyślnego ograniczenia kolumny.

computedColumnSql
String

Wyrażenie SQL do użycia do obliczenia wartości kolumny.

identity
Boolean

Wskazuje, czy kolumna jest kolumną Identity.

annotatable
IAnnotatable

Element MigrationOperation służący do znajdowania dowolnych adnotacji niestandardowych.

model
IModel

Model docelowy, który może być null taki, 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 dla definicji kolumny dla podanych 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 , do którego 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 też 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 do użycia dla domyślnego ograniczenia kolumny.

computedColumnSql
String

Wyrażenie SQL do użycia do obliczenia wartości kolumny.

annotatable
IAnnotatable

Element MigrationOperation służący do znajdowania dowolnych adnotacji niestandardowych.

model
IModel

Model docelowy, który może być null taki, 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, Boolean, IAnnotatable, IModel, MigrationCommandListBuilder)

Przestroga

Use the overload with most parameters

Generuje fragment SQL dla definicji kolumny dla podanych metadanych kolumny.

protected virtual 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, bool identity, Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable annotatable, Microsoft.EntityFrameworkCore.Metadata.IModel model, Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder builder);
[System.Obsolete("Use the overload with most parameters")]
protected virtual 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, bool identity, 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 * bool * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
[<System.Obsolete("Use the overload with most parameters")>]
override this.ColumnDefinition : string * string * string * Type * string * Nullable<bool> * Nullable<int> * bool * bool * obj * string * string * bool * Microsoft.EntityFrameworkCore.Infrastructure.IAnnotatable * Microsoft.EntityFrameworkCore.Metadata.IModel * Microsoft.EntityFrameworkCore.Migrations.MigrationCommandListBuilder -> unit
Protected Overridable 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, identity As Boolean, 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 , do którego 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 też 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 do użycia dla domyślnego ograniczenia kolumny.

computedColumnSql
String

Wyrażenie SQL do użycia do obliczenia wartości kolumny.

identity
Boolean

Wskazuje, czy kolumna jest kolumną Identity.

annotatable
IAnnotatable

Element MigrationOperation służący do znajdowania dowolnych adnotacji niestandardowych.

model
IModel

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

builder
MigrationCommandListBuilder

Konstruktor poleceń używany do dodawania fragmentu SQL.

Atrybuty

Dotyczy

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

Generuje fragment SQL dla definicji kolumny dla podanych 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 być null taki, jeśli operacje istnieją bez modelu.

builder
MigrationCommandListBuilder

Konstruktor poleceń używany do dodawania fragmentu SQL.

Dotyczy

ColumnDefinition(AddColumnOperation, IModel, MigrationCommandListBuilder)

Generuje fragment SQL dla definicji kolumny w elemecie 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 być null taki, 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 dla definicji kolumny dla podanych 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 , do którego 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 też 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 do użycia dla domyślnego ograniczenia kolumny.

computedColumnSql
String

Wyrażenie SQL do użycia do obliczenia wartości kolumny.

annotatable
IAnnotatable

Element MigrationOperation służący do znajdowania dowolnych adnotacji niestandardowych.

model
IModel

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

builder
MigrationCommandListBuilder

Konstruktor poleceń używany do dodawania fragmentu SQL.

Dotyczy