Condividi tramite


QueryTypeBuilder<TQuery>.Property<TProperty> Metodo

Definizione

Restituisce un oggetto che può essere usato per configurare una proprietà del tipo di query. Se la proprietà specificata non fa già parte del modello, verrà aggiunta.

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)

Parametri di tipo

TProperty

Parametri

propertyExpression
Expression<Func<TQuery,TProperty>>

Espressione lambda che rappresenta la proprietà da configurare ( blog => blog.Url).

Restituisce

Oggetto che può essere usato per configurare la proprietà.

Si applica a