Share via


ComplexPropertyBuilder<TComplex>.Property<TProperty> Methode

Definition

Gibt ein -Objekt zurück, das zum Konfigurieren einer Eigenschaft des Entitätstyps verwendet werden kann. Wenn die angegebene Eigenschaft noch nicht Teil des Modells ist, wird sie hinzugefügt.

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

Typparameter

TProperty

Parameter

propertyExpression
Expression<Func<TComplex,TProperty>>

Ein Lambdaausdruck, der die zu konfigurierende Eigenschaft darstellt ( blog => blog.Url).

Gibt zurück

Ein Objekt, das zum Konfigurieren der Eigenschaft verwendet werden kann.

Gilt für: