DbComplexPropertyEntry.Cast<TEntity, TComplexProperty> 方法
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
傳回相等的泛型 DbComplexPropertyEntry<TEntity, TComplexProperty> 物件。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Function Cast(Of TEntity As Class, TComplexProperty) As DbComplexPropertyEntry(Of TEntity, TComplexProperty)
'用途
Dim instance As DbComplexPropertyEntry
Dim returnValue As DbComplexPropertyEntry(Of TEntity, TComplexProperty)
returnValue = instance.Cast()
public DbComplexPropertyEntry<TEntity, TComplexProperty> Cast<TEntity, TComplexProperty>()
where TEntity : class
public:
generic<typename TEntity, typename TComplexProperty>
where TEntity : ref class
DbComplexPropertyEntry<TEntity, TComplexProperty>^ Cast()
member Cast : unit -> DbComplexPropertyEntry<'TEntity, 'TComplexProperty> when 'TEntity : not struct
JScript does not support generic types and methods.
類型參數
- TEntity
這是成員宣告所在之實體的類型。
- TComplexProperty
複雜屬性的類型。
傳回值
類型:System.Data.Entity.Infrastructure.DbComplexPropertyEntry<TEntity, TComplexProperty>
相等的泛型物件。