语言

ModelExtensions.IsShared(IModel, Type) 方法

定义

获取模型中的共享类型实体是否使用 CLR 类型。

[System.Diagnostics.DebuggerStepThrough]
public static bool IsShared(this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);
[<System.Diagnostics.DebuggerStepThrough>]
static member IsShared : Microsoft.EntityFrameworkCore.Metadata.IModel * Type -> bool
<Extension()>
Public Function IsShared (model As IModel, type As Type) As Boolean

参数

model
IModel

要在其中查找实体类型的模型。

type
Type

CLR 类型。

返回

CLR 类型是否由模型中的共享类型实体使用。

特性

适用于