共用方式為


RuntimeModel.FindAdHocEntityType(Type) 方法

定義

取得具有指定名稱的實體類型。 null如果未將具有指定名稱的實體類型對應為臨機操作類型,則傳回 。

public virtual Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType? FindAdHocEntityType (Type clrType);
abstract member FindAdHocEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType
override this.FindAdHocEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.RuntimeEntityType
Public Overridable Function FindAdHocEntityType (clrType As Type) As RuntimeEntityType

參數

clrType
Type

要尋找之實體類型的 CLR 類型。

傳回

實體類型, null 如果找不到則為 。

適用於