ObjectContext.ObjectMaterialized Event

.NET Framework (current version)
 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
Available since 4.0
Return to top
Show: