Share via


PropertyValues.ToObject Method

Definition

Creates an instance of the entity type and sets all its properties using the values from this object.

public abstract object ToObject ();
abstract member ToObject : unit -> obj
Public MustOverride Function ToObject () As Object

Returns

The values of this object copied into a new entity instance.

Remarks

See Accessing tracked entities in EF Core for more information and examples.

Applies to