RuntimeModel.GetOrAddAdHocEntityType(RuntimeEntityType) Method

Definition

Adds an ad-hoc entity type to the model.

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType GetOrAddAdHocEntityType (Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType entityType);
abstract member GetOrAddAdHocEntityType : Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType
override this.GetOrAddAdHocEntityType : Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType -> Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType
Public Overridable Function GetOrAddAdHocEntityType (entityType As RuntimeEntityType) As RuntimeEntityType

Parameters

entityType
RuntimeEntityType

The entity type.

Returns

Applies to