次の方法で共有


DbExpressionBuilder.Property メソッド

定義

オーバーロード

Property(DbExpression, EdmProperty)

指定されたプロパティの取得を表す新しい DbPropertyExpression を作成します。

Property(DbExpression, NavigationProperty)

指定されたナビゲーション プロパティの取得を表す新しい DbPropertyExpression を作成します。

Property(DbExpression, RelationshipEndMember)

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

Property(DbExpression, String)

特定のインスタンスからの指定された名前のインスタンス プロパティの取得を表す新しい DbPropertyExpression を作成します。

Property(DbExpression, EdmProperty)

指定されたプロパティの取得を表す新しい DbPropertyExpression を作成します。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification="required for this feature")]
public static System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression Property (this System.Data.Entity.Core.Common.CommandTrees.DbExpression instance, System.Data.Entity.Core.Metadata.Edm.EdmProperty propertyMetadata);
static member Property : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Metadata.Edm.EdmProperty -> System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, propertyMetadata As EdmProperty) As DbPropertyExpression

パラメーター

instance
DbExpression

プロパティを取得する対象のインスタンス。 プロパティが static の場合は、null が返されます。

propertyMetadata
EdmProperty

取得するプロパティのメタデータ。

戻り値

プロパティの取得を表す新しい DbPropertyExpression。

属性

例外

propertyMetadata が null であるか、インスタンスが null で、プロパティが静的ではありません。

適用対象

Property(DbExpression, NavigationProperty)

指定されたナビゲーション プロパティの取得を表す新しい DbPropertyExpression を作成します。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification="required for this feature")]
public static System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression Property (this System.Data.Entity.Core.Common.CommandTrees.DbExpression instance, System.Data.Entity.Core.Metadata.Edm.NavigationProperty navigationProperty);
static member Property : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Metadata.Edm.NavigationProperty -> System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression

パラメーター

instance
DbExpression

ナビゲーション プロパティを取得する対象のインスタンス。

navigationProperty
NavigationProperty

取得するナビゲーション プロパティのメタデータ。

戻り値

ナビゲーション プロパティの取得を表す新しい DbPropertyExpression。

属性

例外

navigationProperty または インスタンスが null です。

適用対象

Property(DbExpression, RelationshipEndMember)

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

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters", Justification="required for this feature")]
public static System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression Property (this System.Data.Entity.Core.Common.CommandTrees.DbExpression instance, System.Data.Entity.Core.Metadata.Edm.RelationshipEndMember relationshipEnd);
static member Property : System.Data.Entity.Core.Common.CommandTrees.DbExpression * System.Data.Entity.Core.Metadata.Edm.RelationshipEndMember -> System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, relationshipEnd As RelationshipEndMember) As DbPropertyExpression

パラメーター

instance
DbExpression

リレーションシップ端のメンバーを取得する対象のインスタンス。

relationshipEnd
RelationshipEndMember

取得するリレーションシップ端のメンバーのメタデータ。

戻り値

リレーションシップ端のメンバーの取得を表す新しい DbPropertyExpression。

属性

例外

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

適用対象

Property(DbExpression, String)

特定のインスタンスからの指定された名前のインスタンス プロパティの取得を表す新しい DbPropertyExpression を作成します。

public static System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression Property (this System.Data.Entity.Core.Common.CommandTrees.DbExpression instance, string propertyName);
static member Property : System.Data.Entity.Core.Common.CommandTrees.DbExpression * string -> System.Data.Entity.Core.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, propertyName As String) As DbPropertyExpression

パラメーター

instance
DbExpression

プロパティを取得する対象のインスタンス。

propertyName
String

取得するプロパティの名前。

戻り値

プロパティの取得を表す新しい DbPropertyExpression。

例外

propertyName が null であるか、インスタンスが null で、プロパティが静的ではありません。

指定した名前のプロパティは、インスタンスの型によって宣言されていません。

適用対象