DbCollectionEntry.Cast<TEntity,TElement> 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回等效的泛型 DbCollectionEntry<TEntity,TElement> 对象。
public System.Data.Entity.Infrastructure.DbCollectionEntry<TEntity,TElement> Cast<TEntity,TElement>() where TEntity : class;
override this.Cast : unit -> System.Data.Entity.Infrastructure.DbCollectionEntry<'Entity, 'Element (requires 'Entity : null)> (requires 'Entity : null)
Public Function Cast(Of TEntity As Class, TElement As Class) () As DbCollectionEntry(Of TEntity, TElement)
类型参数
- TEntity
在其上声明该成员的实体的类型。
- TElement
集合元素的类型。
返回
等效泛型对象。