QueryTypeBuilder<TQuery>.Property<TProperty>(Expression<Func<TQuery,TProperty>>) Yöntem

Tanım

Sorgu türünün bir özelliğini yapılandırmak için kullanılabilecek bir nesne döndürür. Belirtilen özellik zaten modelin bir parçası değilse, eklenir.

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)

Tür Parametreleri

TProperty

Parametreler

propertyExpression
Expression<Func<TQuery,TProperty>>

Yapılandırılacak özelliği temsil eden bir lambda ifadesi ( Blog = > blog. URL).

Döndürülenler

PropertyBuilder<TProperty>

Özelliği yapılandırmak için kullanılabilen bir nesne.

Şunlara uygulanır