共用方式為


OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity>.Property<TProperty> 方法

定義

將 屬性對應至目前資料表上的資料行,並傳回物件,如果屬性對應至多個資料表,則可用來提供資料表特定的組態。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ColumnBuilder<TProperty> Property<TProperty> (System.Linq.Expressions.Expression<Func<TDependentEntity,TProperty>> propertyExpression);
override this.Property : System.Linq.Expressions.Expression<Func<'DependentEntity, 'Property>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.ColumnBuilder<'Property>
Public Overridable Function Property(Of TProperty) (propertyExpression As Expression(Of Func(Of TDependentEntity, TProperty))) As ColumnBuilder(Of TProperty)

類型參數

TProperty

參數

propertyExpression
Expression<Func<TDependentEntity,TProperty>>

Lambda 運算式,表示要設定 () blog => blog.Url 的屬性。

傳回

物件,可用來設定 屬性。

適用於