ColumnsBuilder.Column Método
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
Column<T>(String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String)
Agrega un objeto AddColumnOperation a CreateTableOperation.
Tenga en cuenta que para los parámetros que aceptan valores NULL, un null
valor significa que no se especifica.
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation> Column<T> (string type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string name = default, bool nullable = false, object defaultValue = default, string defaultValueSql = default, string computedColumnSql = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation> Column<T> (string type, bool? unicode, int? maxLength, bool rowVersion, string name, bool nullable, object defaultValue, string defaultValueSql, string computedColumnSql);
abstract member Column : string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation>
override this.Column : string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation>
Public Overridable Function Column(Of T) (Optional type As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional rowVersion As Boolean = false, Optional name As String = Nothing, Optional nullable As Boolean = false, Optional defaultValue As Object = Nothing, Optional defaultValueSql As String = Nothing, Optional computedColumnSql As String = Nothing) As OperationBuilder(Of AddColumnOperation)
Public Overridable Function Column(Of T) (type As String, unicode As Nullable(Of Boolean), maxLength As Nullable(Of Integer), rowVersion As Boolean, name As String, nullable As Boolean, defaultValue As Object, defaultValueSql As String, computedColumnSql As String) As OperationBuilder(Of AddColumnOperation)
Parámetros de tipo
- T
Tipo CLR de la columna.
Parámetros
- type
- String
Tipo de base de datos de la columna.
- rowVersion
- Boolean
Indica si la columna actuará como un token de simultaneidad rowversion/timestamp.
- name
- String
Nombre de columna.
- nullable
- Boolean
Indica si la columna th puede almacenar NULL
valores.
- defaultValue
- Object
El valor predeterminado de la columna.
- defaultValueSql
- String
Expresión SQL que se va a usar para la restricción predeterminada de la columna.
- computedColumnSql
- String
Expresión SQL que se va a usar para calcular el valor de columna.
Devoluciones
El mismo generador para que se puedan encadenar varias llamadas.
Se aplica a
Column<T>(String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Nullable<Boolean>)
Agrega un objeto AddColumnOperation a CreateTableOperation.
Tenga en cuenta que para los parámetros que aceptan valores NULL, un null
valor significa que no se especifica.
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation> Column<T> (string type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string name = default, bool nullable = false, object defaultValue = default, string defaultValueSql = default, string computedColumnSql = default, bool? fixedLength = default);
abstract member Column : string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation>
override this.Column : string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation>
Public Overridable Function Column(Of T) (Optional type As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional rowVersion As Boolean = false, Optional name As String = Nothing, Optional nullable As Boolean = false, Optional defaultValue As Object = Nothing, Optional defaultValueSql As String = Nothing, Optional computedColumnSql As String = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing) As OperationBuilder(Of AddColumnOperation)
Parámetros de tipo
- T
Tipo CLR de la columna.
Parámetros
- type
- String
Tipo de base de datos de la columna.
- rowVersion
- Boolean
Indica si la columna actuará como un token de simultaneidad rowversion/timestamp.
- name
- String
Nombre de columna.
- nullable
- Boolean
Indica si la columna th puede almacenar NULL
valores.
- defaultValue
- Object
El valor predeterminado de la columna.
- defaultValueSql
- String
Expresión SQL que se va a usar para la restricción predeterminada de la columna.
- computedColumnSql
- String
Expresión SQL que se va a usar para calcular el valor de columna.
Devoluciones
El mismo generador para que se puedan encadenar varias llamadas.
Se aplica a
Column<T>(String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Nullable<Boolean>, String)
Agrega un objeto AddColumnOperation a CreateTableOperation.
Tenga en cuenta que para los parámetros que aceptan valores NULL, un null
valor significa que no se especifica.
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation> Column<T> (string type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string name = default, bool nullable = false, object defaultValue = default, string defaultValueSql = default, string computedColumnSql = default, bool? fixedLength = default, string comment = default);
abstract member Column : string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Nullable<bool> * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation>
override this.Column : string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Nullable<bool> * string -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation>
Public Overridable Function Column(Of T) (Optional type As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional rowVersion As Boolean = false, Optional name As String = Nothing, Optional nullable As Boolean = false, Optional defaultValue As Object = Nothing, Optional defaultValueSql As String = Nothing, Optional computedColumnSql As String = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional comment As String = Nothing) As OperationBuilder(Of AddColumnOperation)
Parámetros de tipo
- T
Tipo CLR de la columna.
Parámetros
- type
- String
Tipo de base de datos de la columna.
- rowVersion
- Boolean
Indica si la columna actuará como un token de simultaneidad rowversion/timestamp.
- name
- String
Nombre de columna.
- nullable
- Boolean
Indica si la columna puede almacenar NULL
valores o no.
- defaultValue
- Object
El valor predeterminado de la columna.
- defaultValueSql
- String
Expresión SQL que se va a usar para la restricción predeterminada de la columna.
- computedColumnSql
- String
Expresión SQL que se va a usar para calcular el valor de columna.
- comment
- String
Comentario que se va a aplicar a la tabla.
Devoluciones
El mismo generador para que se puedan encadenar varias llamadas.
Se aplica a
Column<T>(String, Nullable<Boolean>, Nullable<Int32>, Boolean, String, Boolean, Object, String, String, Nullable<Boolean>, String, String, Nullable<Int32>, Nullable<Int32>, Nullable<Boolean>)
Agrega un objeto AddColumnOperation a CreateTableOperation.
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation> Column<T> (string type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string name = default, bool nullable = false, object defaultValue = default, string defaultValueSql = default, string computedColumnSql = default, bool? fixedLength = default, string comment = default, string collation = default, int? precision = default, int? scale = default, bool? stored = default);
public virtual Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation> Column<T> (string? type = default, bool? unicode = default, int? maxLength = default, bool rowVersion = false, string? name = default, bool nullable = false, object? defaultValue = default, string? defaultValueSql = default, string? computedColumnSql = default, bool? fixedLength = default, string? comment = default, string? collation = default, int? precision = default, int? scale = default, bool? stored = default);
abstract member Column : string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Nullable<bool> * string * string * Nullable<int> * Nullable<int> * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation>
override this.Column : string * Nullable<bool> * Nullable<int> * bool * string * bool * obj * string * string * Nullable<bool> * string * string * Nullable<int> * Nullable<int> * Nullable<bool> -> Microsoft.EntityFrameworkCore.Migrations.Operations.Builders.OperationBuilder<Microsoft.EntityFrameworkCore.Migrations.Operations.AddColumnOperation>
Public Overridable Function Column(Of T) (Optional type As String = Nothing, Optional unicode As Nullable(Of Boolean) = Nothing, Optional maxLength As Nullable(Of Integer) = Nothing, Optional rowVersion As Boolean = false, Optional name As String = Nothing, Optional nullable As Boolean = false, Optional defaultValue As Object = Nothing, Optional defaultValueSql As String = Nothing, Optional computedColumnSql As String = Nothing, Optional fixedLength As Nullable(Of Boolean) = Nothing, Optional comment As String = Nothing, Optional collation As String = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing, Optional stored As Nullable(Of Boolean) = Nothing) As OperationBuilder(Of AddColumnOperation)
Parámetros de tipo
- T
Tipo CLR de la columna.
Parámetros
- type
- String
Tipo de base de datos de la columna.
- rowVersion
- Boolean
Indica si la columna actuará como un token de simultaneidad rowversion/timestamp.
- name
- String
Nombre de columna.
- nullable
- Boolean
Indica si la columna puede almacenar null
valores o no.
- defaultValue
- Object
El valor predeterminado de la columna.
- defaultValueSql
- String
Expresión SQL que se va a usar para la restricción predeterminada de la columna.
- computedColumnSql
- String
Expresión SQL que se va a usar para calcular el valor de columna.
- comment
- String
Comentario que se va a aplicar a la columna.
- collation
- String
Intercalación que se va a aplicar a la columna.
Devoluciones
El mismo generador para que se puedan encadenar varias llamadas.
Comentarios
Tenga en cuenta que para los parámetros que aceptan valores NULL, un null
valor significa que no se especifica.