QueryTypeBuilder<TQuery>.Property<TProperty> Method

Definition

Returns an object that can be used to configure a property of the query type. If the specified property is not already part of the model, it will be added.

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

Type Parameters

TProperty

Parameters

propertyExpression
Expression<Func<TQuery,TProperty>>

A lambda expression representing the property to be configured ( blog => blog.Url).

Returns

An object that can be used to configure the property.

Applies to