Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
ObjectMaterialized Event
Collapse the table of content
Expand the table of content

ObjectContext.ObjectMaterialized Event

.NET Framework 4.6 and 4.5

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

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

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
© 2015 Microsoft