ObjectMaterializedEventArgs.Entity Property

Definition

Gets the entity object that was created.

C#
public object Entity { get; }

Property Value

The entity object that was created.

Remarks

If an object that has the same key value exists in the context, the Entity Framework will not recreate the object and the ObjectMaterialized event will not be raised.

Applies to

Proizvod Verzije
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1