OwnedNavigationSplitTableBuilder<TOwnerEntity,TDependentEntity>.Property<TProperty> 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將屬性映射到目前資料表的欄位,並回傳一個物件,若該屬性被映射到多個資料表,該物件可用於提供特定資料表的設定。
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)。
傳回
一個可以用來設定屬性的物件。