語言

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)。

傳回

一個可以用來設定屬性的物件。

適用於