DbExpressionBuilder.Property メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したプロパティの取得を表す新しい DbPropertyExpression を作成します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Property(DbExpression, EdmProperty) |
指定したプロパティの取得を表す新しい DbPropertyExpression を作成します。 |
| Property(DbExpression, NavigationProperty) |
指定したナビゲーション プロパティの取得を表す新しい DbPropertyExpression を作成します。 |
| Property(DbExpression, RelationshipEndMember) |
指定したリレーションシップ エンド メンバーの取得を表す新しい DbPropertyExpression を作成します。 |
| Property(DbExpression, String) |
指定したインスタンスから指定した名前を持つインスタンス プロパティの取得を表す新しい DbPropertyExpression を作成します。 |
Property(DbExpression, EdmProperty)
指定したプロパティの取得を表す新しい DbPropertyExpression を作成します。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbPropertyExpression ^ Property(System::Data::Common::CommandTrees::DbExpression ^ instance, System::Data::Metadata::Edm::EdmProperty ^ propertyMetadata);
public static System.Data.Common.CommandTrees.DbPropertyExpression Property(this System.Data.Common.CommandTrees.DbExpression instance, System.Data.Metadata.Edm.EdmProperty propertyMetadata);
static member Property : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.EdmProperty -> System.Data.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, propertyMetadata As EdmProperty) As DbPropertyExpression
パラメーター
- instance
- DbExpression
プロパティの取得元のインスタンス。 プロパティが静的な場合は null にすることができます。
- propertyMetadata
- EdmProperty
取得するプロパティのメタデータ。
返品
プロパティの取得を表す新しい DbPropertyExpression。
例外
propertyMetadata が null であるか、 instance が null で、プロパティが静的ではありません。
適用対象
Property(DbExpression, NavigationProperty)
指定したナビゲーション プロパティの取得を表す新しい DbPropertyExpression を作成します。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbPropertyExpression ^ Property(System::Data::Common::CommandTrees::DbExpression ^ instance, System::Data::Metadata::Edm::NavigationProperty ^ navigationProperty);
public static System.Data.Common.CommandTrees.DbPropertyExpression Property(this System.Data.Common.CommandTrees.DbExpression instance, System.Data.Metadata.Edm.NavigationProperty navigationProperty);
static member Property : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.NavigationProperty -> System.Data.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, navigationProperty As NavigationProperty) As DbPropertyExpression
パラメーター
- instance
- DbExpression
ナビゲーション プロパティの取得元のインスタンス。
- navigationProperty
- NavigationProperty
取得するナビゲーション プロパティのメタデータ。
返品
ナビゲーション プロパティの取得を表す新しい DbPropertyExpression。
例外
navigationProperty または instance が null です。
適用対象
Property(DbExpression, RelationshipEndMember)
指定したリレーションシップ エンド メンバーの取得を表す新しい DbPropertyExpression を作成します。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbPropertyExpression ^ Property(System::Data::Common::CommandTrees::DbExpression ^ instance, System::Data::Metadata::Edm::RelationshipEndMember ^ relationshipEnd);
public static System.Data.Common.CommandTrees.DbPropertyExpression Property(this System.Data.Common.CommandTrees.DbExpression instance, System.Data.Metadata.Edm.RelationshipEndMember relationshipEnd);
static member Property : System.Data.Common.CommandTrees.DbExpression * System.Data.Metadata.Edm.RelationshipEndMember -> System.Data.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, relationshipEnd As RelationshipEndMember) As DbPropertyExpression
パラメーター
- instance
- DbExpression
リレーションシップの終了メンバーの取得元のインスタンス。
- relationshipEnd
- RelationshipEndMember
取得するリレーションシップ エンド メンバーのメタデータ。
返品
リレーションシップの終了メンバーの取得を表す新しい DbPropertyExpression。
例外
relationshipEnd が null であるか、 instance が null で、プロパティが静的ではありません。
適用対象
Property(DbExpression, String)
指定したインスタンスから指定した名前を持つインスタンス プロパティの取得を表す新しい DbPropertyExpression を作成します。
public:
[System::Runtime::CompilerServices::Extension]
static System::Data::Common::CommandTrees::DbPropertyExpression ^ Property(System::Data::Common::CommandTrees::DbExpression ^ instance, System::String ^ propertyName);
public static System.Data.Common.CommandTrees.DbPropertyExpression Property(this System.Data.Common.CommandTrees.DbExpression instance, string propertyName);
static member Property : System.Data.Common.CommandTrees.DbExpression * string -> System.Data.Common.CommandTrees.DbPropertyExpression
<Extension()>
Public Function Property (instance As DbExpression, propertyName As String) As DbPropertyExpression
パラメーター
- instance
- DbExpression
プロパティの取得元のインスタンス。
- propertyName
- String
取得するプロパティの名前。
返品
プロパティの取得を表す新しい DbPropertyExpression。
例外
propertyName が null であるか、 instance が null で、プロパティが静的ではありません。
指定した名前のプロパティは、 instanceの型によって宣言されていません。