Language

DbExpressionBuilder.Property メソッド

定義

オーバーロード

Name 説明
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

プロパティの取得元のインスタンス。 プロパティが静的な場合は 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 で、プロパティが静的ではありません。

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

適用対象