共用方式為


DbCollectionEntry<TEntity, TElement> Implicit 轉換 (DbCollectionEntry<TEntity, TElement> to DbCollectionEntry)

[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]

針對此物件所表示的導覽屬性傳回非泛型 DbCollectionEntry 類別的新執行個體。

命名空間:  System.Data.Entity.Infrastructure
組件:  EntityFramework (在 EntityFramework.dll 中)

語法

'宣告
Public Shared Widening Operator CType ( _
    entry As DbCollectionEntry(Of TEntity, TElement) _
) As DbCollectionEntry
'用途
Dim input As DbCollectionEntry(Of TEntity, TElement)
Dim output As DbCollectionEntry 

output = CType(input, DbCollectionEntry)
public static implicit operator DbCollectionEntry (
    DbCollectionEntry<TEntity, TElement> entry
)
static implicit operator DbCollectionEntry^ (
    DbCollectionEntry<TEntity, TElement>^ entry
)
JScript supports the use of custom casts, but not the declaration of new ones.

參數

傳回值

類型:System.Data.Entity.Infrastructure.DbCollectionEntry
非泛型版本。

請參閱

參考

DbCollectionEntry<TEntity, TElement> 類別

System.Data.Entity.Infrastructure 命名空間