Επεξεργασία

Κοινή χρήση μέσω


ObjectContext.ObjectMaterialized Event

Definition

Occurs when a new entity object is created from data in the data source as part of a query or load operation.

public:
 event System::Data::Objects::ObjectMaterializedEventHandler ^ ObjectMaterialized;
public event System.Data.Objects.ObjectMaterializedEventHandler ObjectMaterialized;
member this.ObjectMaterialized : System.Data.Objects.ObjectMaterializedEventHandler 
Public Custom Event ObjectMaterialized As ObjectMaterializedEventHandler 

Event Type

Remarks

This event is raised after all scalar, complex, and reference properties have been set on an object, but before collections are loaded. If an object with the same key value exists in the object context, the Entity Framework will not recreate the object and this event will not be raised.

Applies to