RelationalComplexTypePropertyBuilderExtensions.HasComment 方法

定義

多載

HasComment(ComplexTypePropertyBuilder, String)

設定要套用至資料行的批註

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

設定要套用至資料行的批註

HasComment(ComplexTypePropertyBuilder, String)

設定要套用至資料行的批註

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

參數

propertyBuilder
ComplexTypePropertyBuilder

要設定之屬性的產生器。

comment
String

資料行的批註。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於

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

設定要套用至資料行的批註

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)

類型參數

TProperty

正在設定之屬性的型別。

參數

propertyBuilder
ComplexTypePropertyBuilder<TProperty>

要設定之屬性的產生器。

comment
String

資料行的批註。

傳回

相同的產生器實例,以便鏈結多個呼叫。

備註

如需詳細資訊和範例,請參閱 模型化實體類型和關聯 性。

適用於