DbChangeTracker.Entries<TEntity> 方法
[本页针对的是实体框架版本 6。最新版本以“实体框架”NuGet 包的形式提供。有关实体框架的更多信息,请参见 msdn.com/data/ef。]
获取此上下文跟踪的给定类型的所有实体的 DbEntityEntry 对象。
命名空间: System.Data.Entity.Infrastructure
程序集: EntityFramework(在 EntityFramework.dll 中)
语法
声明
<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")> _
Public Function Entries(Of TEntity As Class) As IEnumerable(Of DbEntityEntry(Of TEntity))
用法
Dim instance As DbChangeTracker
Dim returnValue As IEnumerable(Of DbEntityEntry(Of TEntity))
returnValue = instance.Entries()
[SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")]
public IEnumerable<DbEntityEntry<TEntity>> Entries<TEntity>()
where TEntity : class
[SuppressMessageAttribute(L"Microsoft.Design", L"CA1006:DoNotNestGenericTypesInMemberSignatures")]
public:
generic<typename TEntity>
where TEntity : ref class
IEnumerable<DbEntityEntry<TEntity>^>^ Entries()
[<SuppressMessageAttribute("Microsoft.Design", "CA1006:DoNotNestGenericTypesInMemberSignatures")>]
member Entries : unit -> IEnumerable<DbEntityEntry<'TEntity>> when 'TEntity : not struct
JScript does not support generic types and methods.
类型参数
- TEntity
实体的类型。
返回值
类型:System.Collections.Generic.IEnumerable<DbEntityEntry<TEntity>>
项。