次の方法で共有


DbExpressionBuilder.Property メソッド (DbExpression, RelationshipEndMember)

[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]

指定されたリレーションシップ端のメンバーの取得を表す新しい DbPropertyExpression を作成します。

名前空間:  System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder
アセンブリ:  EntityFramework (EntityFramework.dll 内)

構文

'宣言
<ExtensionAttribute> _
<SuppressMessageAttribute("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification := "required for this feature")> _
Public Shared Function Property ( _
    instance As DbExpression, _
    relationshipEnd As RelationshipEndMember _
) As DbPropertyExpression
'使用
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

パラメーター

戻り値

型 : System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression
リレーションシップ端のメンバーの取得を表す新しい DbPropertyExpression。

使用上の注意

Visual Basic および Visual C# では、このメソッドを、DbExpression 型のオブジェクトのインスタンス メソッドとして呼び出すことができます。インスタンス メソッド構文を使用してこのメソッドを呼び出す場合は、最初のパラメーターを省略します。詳細については、「https://msdn.microsoft.com/ja-jp/library/bb384936(v=vs.113)」または「https://msdn.microsoft.com/ja-jp/library/bb383977(v=vs.113)」を参照してください。

例外

例外 状態
ArgumentNullException

relationshipEnd が null であるか、instance が null で、プロパティは静的ではありません。

参照

参照

DbExpressionBuilder クラス

Property オーバーロード

System.Data.Entity.Core.Common.CommandTrees.ExpressionBuilder 名前空間