Freigeben über


DbExpressionBuilder.Property-Methode (DbExpression, RelationshipEndMember)

[Diese Seite bezieht sich auf Entity Framework Version 6. Die neueste Version ist als 'Entity Framework' NuGet-Paket verfügbar. Weitere Informationen zu Entity Framework finden Sie unter msdn.com/data/ef.]

Erstellt ein neues DbPropertyExpression, das das Abrufen des angegebenen Endmembers der Beziehung darstellt.

Namespace:  System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
Assembly:  EntityFramework (in EntityFramework.dll)

Syntax

'Declaration
<ExtensionAttribute> _
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification := "required for this feature")> _
Public Shared Function Property ( _
    instance As DbExpression, _
    relationshipEnd As RelationshipEndMember _
) As DbPropertyExpression
'Usage
Dim instance As DbExpression 
Dim relationshipEnd As RelationshipEndMember 
Dim returnValue As DbPropertyExpression 

returnValue = instance.Property(relationshipEnd)
[SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "required for this feature")]
public static DbPropertyExpression Property(
    this DbExpression instance,
    RelationshipEndMember relationshipEnd
)
[ExtensionAttribute]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1011:ConsiderPassingBaseTypesAsParameters", Justification = L"required for this feature")]
public:
static DbPropertyExpression^ Property(
    DbExpression^ instance, 
    RelationshipEndMember^ relationshipEnd
)
[<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification = "required for this feature")>]
static member Property : 
        instance:DbExpression * 
        relationshipEnd:RelationshipEndMember -> DbPropertyExpression
public static function Property(
    instance : DbExpression, 
    relationshipEnd : RelationshipEndMember
) : DbPropertyExpression

Parameter

Rückgabewert

Typ: System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression
Ein neues DbPropertyExpression, das das Abrufen des Endmembers der Beziehung darstellt.

Hinweis zur Verwendung

In Visual Basic und C# können Sie diese Methode als Instanzenmethode für ein beliebiges Objekt vom Typ DbExpression aufrufen. Bei Verwendung der Syntax für Instanzenmethoden lassen Sie den ersten Parameter aus. Weitere Informationen finden Sie unter https://msdn.microsoft.com/de-de/library/bb384936(v=vs.113) oder https://msdn.microsoft.com/de-de/library/bb383977(v=vs.113).

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

relationshipEnd ist Null, oder instance ist Null und die Eigenschaft ist nicht statisch.

Siehe auch

Verweis

DbExpressionBuilder Klasse

Property-Überladung

System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder-Namespace