Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ObjectContext::ObjectMaterialized Event

.NET Framework (current version)
 

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

Namespace:   System.Data.Objects
Assembly:  System.Data.Entity (in System.Data.Entity.dll)

public:
event ObjectMaterializedEventHandler^ ObjectMaterialized {
	void add(ObjectMaterializedEventHandler^ value);
	void remove(ObjectMaterializedEventHandler^ value);
}

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.

.NET Framework
Available since 4.0
Return to top
Show:
© 2017 Microsoft