DataServiceContext.ReadingEntity 事件

定义

在实体数据已完全读入实体对象之后发生。Occurs after entity data has been completely read into the entity object.

public:
 event EventHandler<System::Data::Services::Client::ReadingWritingEntityEventArgs ^> ^ ReadingEntity;
public event EventHandler<System.Data.Services.Client.ReadingWritingEntityEventArgs> ReadingEntity;
member this.ReadingEntity : EventHandler<System.Data.Services.Client.ReadingWritingEntityEventArgs> 
Public Event ReadingEntity As EventHandler(Of ReadingWritingEntityEventArgs) 

注解

ReadingEntity 事件在实体数据与所有嵌套实体一起完全读入目标对象之后发生。The ReadingEntity event occurs after the entity data has been completely read into the target object together with all nested entities. 如果跟踪是 NoTracking 以外的任何内容,则在事件发生之前附加该对象。If tracking is anything other than NoTracking, the object is attached before the event occurs.

适用于