Delen via


ModelExtensions.IsShared(IModel, Type) Method

Definition

Gets whether the CLR type is used by shared type entities in the model.

[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

Parameters

model
IModel

The model to find the entity type in.

type
Type

The CLR type.

Returns

Whether the CLR type is used by shared type entities in the model.

Attributes

Applies to