DbEntityEntry<TEntity>.ComplexProperty<TComplexProperty> 方法 (String)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
取得物件,表示此實體的複雜屬性。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Function ComplexProperty(Of TComplexProperty) ( _
propertyName As String _
) As DbComplexPropertyEntry(Of TEntity, TComplexProperty)
'用途
Dim instance As DbEntityEntry
Dim propertyName As String
Dim returnValue As DbComplexPropertyEntry(Of TEntity, TComplexProperty)
returnValue = instance.ComplexProperty(propertyName)
public DbComplexPropertyEntry<TEntity, TComplexProperty> ComplexProperty<TComplexProperty>(
string propertyName
)
public:
generic<typename TComplexProperty>
DbComplexPropertyEntry<TEntity, TComplexProperty>^ ComplexProperty(
String^ propertyName
)
member ComplexProperty :
propertyName:string -> DbComplexPropertyEntry<'TEntity, 'TComplexProperty>
JScript does not support generic types and methods.
類型參數
- TComplexProperty
複雜屬性的類型。
參數
- propertyName
類型:System.String
複雜屬性的名稱。
傳回值
類型:System.Data.Entity.Infrastructure.DbComplexPropertyEntry<TEntity, TComplexProperty>
表示複雜屬性的物件。