Compartir a través de


RelationalPropertyExtensions.SetComment Método

Definición

Sobrecargas

SetComment(IConventionProperty, String, Boolean)

Configura un comentario al que se va a aplicar la columna a la que se asigna esta propiedad.

SetComment(IMutableProperty, String)

Configura un comentario al que se va a aplicar la columna a la que se asigna esta propiedad.

SetComment(IConventionProperty, String, Boolean)

Configura un comentario al que se va a aplicar la columna a la que se asigna esta propiedad.

public static void SetComment (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string comment, bool fromDataAnnotation = false);
public static string SetComment (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string comment, bool fromDataAnnotation = false);
public static string? SetComment (this Microsoft.EntityFrameworkCore.Metadata.IConventionProperty property, string? comment, bool fromDataAnnotation = false);
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> unit
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IConventionProperty * string * bool -> string
<Extension()>
Public Sub SetComment (property As IConventionProperty, comment As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetComment (property As IConventionProperty, comment As String, Optional fromDataAnnotation As Boolean = false) As String

Parámetros

property
IConventionProperty

Propiedad.

comment
String

Comentario de la columna.

fromDataAnnotation
Boolean

Indica si la configuración se especificó mediante una anotación de datos.

Devoluciones

El valor configurado.

Se aplica a

SetComment(IMutableProperty, String)

Configura un comentario al que se va a aplicar la columna a la que se asigna esta propiedad.

public static void SetComment (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string comment);
public static void SetComment (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property, string? comment);
static member SetComment : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty * string -> unit
<Extension()>
Public Sub SetComment (property As IMutableProperty, comment As String)

Parámetros

property
IMutableProperty

Propiedad.

comment
String

Comentario de la columna.

Se aplica a