Udostępnij za pośrednictwem


RelationalComplexTypePropertyBuilderExtensions.HasComment Metoda

Definicja

Przeciążenia

HasComment(ComplexTypePropertyBuilder, String)

Konfiguruje komentarz do zastosowania do kolumny

HasComment<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

Konfiguruje komentarz do zastosowania do kolumny

HasComment(ComplexTypePropertyBuilder, String)

Konfiguruje komentarz do zastosowania do kolumny

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder HasComment (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder propertyBuilder, string? comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder
<Extension()>
Public Function HasComment (propertyBuilder As ComplexTypePropertyBuilder, comment As String) As ComplexTypePropertyBuilder

Parametry

propertyBuilder
ComplexTypePropertyBuilder

Konstruktor dla konfigurowanej właściwości.

comment
String

Komentarz dla kolumny.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy

HasComment<TProperty>(ComplexTypePropertyBuilder<TProperty>, String)

Konfiguruje komentarz do zastosowania do kolumny

public static Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> HasComment<TProperty> (this Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<TProperty> propertyBuilder, string? comment);
static member HasComment : Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.ComplexTypePropertyBuilder<'Property>
<Extension()>
Public Function HasComment(Of TProperty) (propertyBuilder As ComplexTypePropertyBuilder(Of TProperty), comment As String) As ComplexTypePropertyBuilder(Of TProperty)

Parametry typu

TProperty

Typ konfigurowanej właściwości.

Parametry

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

Konstruktor dla konfigurowanej właściwości.

comment
String

Komentarz dla kolumny.

Zwraca

To samo wystąpienie konstruktora, aby można było połączyć w łańcuch wiele wywołań.

Uwagi

Aby uzyskać więcej informacji i przykłady, zobacz Modelowanie typów jednostek i relacji .

Dotyczy