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

定义

将属性映射到当前视图上的列,并返回一个对象,该对象可用于提供特定于视图的配置(如果属性映射到多个视图)。

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.ViewColumnBuilder<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.ViewColumnBuilder<'Property>
Public Overridable Function Property(Of TProperty) (propertyExpression As Expression(Of Func(Of TDependentEntity, TProperty))) As ViewColumnBuilder(Of TProperty)

类型参数

TProperty

参数

propertyExpression
Expression<Func<TDependentEntity,TProperty>>

一个 lambda 表达式,表示要 (blog => blog.Url) 配置的属性。

返回

可用于配置 属性的对象。

适用于