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