DbComplexPropertyEntry<TEntity, TComplexProperty>.Property<TNestedProperty> メソッド (Expression<Func<TComplexProperty, TNestedProperty>>)
[このページは、Entity Framework 6 に関するページです。最新バージョンは、'Entity Framework' NuGet パッケージとして入手できます。Entity Framework の詳細については、msdn.com/data/ef を参照してください。]
このプロパティの入れ子プロパティを表すオブジェクトを取得します。 このメソッドはスカラー プロパティにも複合プロパティにも使用できます。
名前空間: System.Data.Entity.Infrastructure
アセンブリ: EntityFramework (EntityFramework.dll 内)
構文
'宣言
<SuppressMessageAttribute("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId := "0#", _
Justification := "Rule predates more fluent naming conventions.")> _
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
Public Function Property(Of TNestedProperty) ( _
property As Expression(Of Func(Of TComplexProperty, TNestedProperty)) _
) As DbPropertyEntry(Of TEntity, TNestedProperty)
'使用
Dim instance As DbComplexPropertyEntry
Dim property As Expression(Of Func(Of TComplexProperty, TNestedProperty))
Dim returnValue As DbPropertyEntry(Of TEntity, TNestedProperty)
returnValue = instance.Property(property)
[SuppressMessageAttribute("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId = "0#",
Justification = "Rule predates more fluent naming conventions.")]
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public DbPropertyEntry<TEntity, TNestedProperty> Property<TNestedProperty>(
Expression<Func<TComplexProperty, TNestedProperty>> property
)
[SuppressMessageAttribute(L"Microsoft.Naming", L"CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId = L"0#",
Justification = L"Rule predates more fluent naming conventions.")]
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
generic<typename TNestedProperty>
DbPropertyEntry<TEntity, TNestedProperty>^ Property(
Expression<Func<TComplexProperty, TNestedProperty>^>^ property
)
[<SuppressMessageAttribute("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", MessageId = "0#",
Justification = "Rule predates more fluent naming conventions.")>]
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
member Property :
property:Expression<Func<'TComplexProperty, 'TNestedProperty>> -> DbPropertyEntry<'TEntity, 'TNestedProperty>
JScript does not support generic types and methods.
型パラメーター
- TNestedProperty
入れ子プロパティの型。
パラメーター
- property
型 : System.Linq.Expressions.Expression<Func<TComplexProperty, TNestedProperty>>
入れ子プロパティを表す式。
戻り値
型 : System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity, TNestedProperty>
入れ子プロパティを表すオブジェクト。