共用方式為


DbComplexPropertyEntry<TEntity,TComplexProperty>.Property 方法

定義

多載

Property(String)

取得代表這個屬性之巢狀屬性的物件。 這個方法可用於純量屬性或複雜屬性。

Property<TNestedProperty>(Expression<Func<TComplexProperty,TNestedProperty>>)

取得代表這個屬性之巢狀屬性的物件。 這個方法可用於純量屬性或複雜屬性。

Property<TNestedProperty>(String)

取得代表這個屬性之巢狀屬性的物件。 這個方法可用於純量屬性或複雜屬性。

Property(String)

取得代表這個屬性之巢狀屬性的物件。 這個方法可用於純量屬性或複雜屬性。

public System.Data.Entity.Infrastructure.DbPropertyEntry Property (string propertyName);
member this.Property : string -> System.Data.Entity.Infrastructure.DbPropertyEntry
Public Function Property (propertyName As String) As DbPropertyEntry

參數

propertyName
String

巢狀屬性的名稱。

傳回

表示巢狀屬性的物件。

適用於

Property<TNestedProperty>(Expression<Func<TComplexProperty,TNestedProperty>>)

取得代表這個屬性之巢狀屬性的物件。 這個方法可用於純量屬性或複雜屬性。

[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", Justification="Rule predates more fluent naming conventions.", MessageId="0#")]
public System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TNestedProperty> Property<TNestedProperty> (System.Linq.Expressions.Expression<Func<TComplexProperty,TNestedProperty>> property);
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1719:ParameterNamesShouldNotMatchMemberNames", Justification="Rule predates more fluent naming conventions.", MessageId="0#")]
public System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TNestedProperty> Property<TNestedProperty> (System.Linq.Expressions.Expression<Func<TComplexProperty,TNestedProperty>> property);
member this.Property : System.Linq.Expressions.Expression<Func<'ComplexProperty, 'NestedProperty>> -> System.Data.Entity.Infrastructure.DbPropertyEntry<'Entity, 'NestedProperty (requires 'Entity : null)>
Public Function Property(Of TNestedProperty) (property As Expression(Of Func(Of TComplexProperty, TNestedProperty))) As DbPropertyEntry(Of TEntity, TNestedProperty)

類型參數

TNestedProperty

巢狀屬性的型別。

參數

property
Expression<Func<TComplexProperty,TNestedProperty>>

表示巢狀屬性的運算式。

傳回

DbPropertyEntry<TEntity,TNestedProperty>

表示巢狀屬性的物件。

屬性

適用於

Property<TNestedProperty>(String)

取得代表這個屬性之巢狀屬性的物件。 這個方法可用於純量屬性或複雜屬性。

public System.Data.Entity.Infrastructure.DbPropertyEntry<TEntity,TNestedProperty> Property<TNestedProperty> (string propertyName);
member this.Property : string -> System.Data.Entity.Infrastructure.DbPropertyEntry<'Entity, 'NestedProperty (requires 'Entity : null)>
Public Function Property(Of TNestedProperty) (propertyName As String) As DbPropertyEntry(Of TEntity, TNestedProperty)

類型參數

TNestedProperty

巢狀屬性的型別。

參數

propertyName
String

巢狀屬性的名稱。

傳回

DbPropertyEntry<TEntity,TNestedProperty>

表示巢狀屬性的物件。

適用於