Table of Contents

Interface IAdHocMapper

Namespace
Microsoft.EntityFrameworkCore.Metadata
Assembly
Microsoft.EntityFrameworkCore.dll

Creates ad-hoc mappings of CLR types to entity types after the model has been built.

public interface IAdHocMapper

Methods

GetOrAddEntityType(Type)

Gets the ad-hoc entity type mapped for the given CLR type, or creates the mapping and returns it if it does not exist.

RuntimeEntityType GetOrAddEntityType(Type clrType)

Parameters

clrType Type

The type for which the entity type will be returned.

Returns

RuntimeEntityType

The ad-hoc entity type.