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)

member ObjectMaterialized : IEvent<ObjectMaterializedEventHandler,
    ObjectMaterializedEventArgs>

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: