Bagikan melalui


QueryTypeBuilder<TQuery>.Property<TProperty> Metode

Definisi

Mengembalikan objek yang dapat digunakan untuk mengonfigurasi properti jenis kueri. Jika properti yang ditentukan belum menjadi bagian dari model, properti tersebut akan ditambahkan.

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)

Jenis parameter

TProperty

Parameter

propertyExpression
Expression<Func<TQuery,TProperty>>

Ekspresi lambda yang mewakili properti yang akan dikonfigurasi ( blog => blog.Url).

Mengembalikan

Objek yang dapat digunakan untuk mengonfigurasi properti.

Berlaku untuk