DbReferenceEntry<TEntity, TProperty> Implicit 轉換 (DbReferenceEntry<TEntity, TProperty> to DbReferenceEntry)
[此頁面專屬於 Entity Framework 第 6 版。最新版本可從 'Entity Framework' NuGet 套件取得。如需 Entity Framework 的詳細資訊,請參閱 msdn.com/data/ef。]
針對此物件所表示的導覽屬性傳回非泛型 DbReferenceEntry 類別的新執行個體。
命名空間: System.Data.Entity.Infrastructure
組件: EntityFramework (在 EntityFramework.dll 中)
語法
'宣告
Public Shared Widening Operator CType ( _
entry As DbReferenceEntry(Of TEntity, TProperty) _
) As DbReferenceEntry
'用途
Dim input As DbReferenceEntry(Of TEntity, TProperty)
Dim output As DbReferenceEntry
output = CType(input, DbReferenceEntry)
public static implicit operator DbReferenceEntry (
DbReferenceEntry<TEntity, TProperty> entry
)
static implicit operator DbReferenceEntry^ (
DbReferenceEntry<TEntity, TProperty>^ entry
)
JScript supports the use of custom casts, but not the declaration of new ones.
參數
- entry
類型:System.Data.Entity.Infrastructure.DbReferenceEntry<TEntity, TProperty>
表示導覽屬性的物件。
傳回值
類型:System.Data.Entity.Infrastructure.DbReferenceEntry
非泛型版本。