ModelExtensions.IsShared(IModel, Type) Method

Definition

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

C#
[System.Diagnostics.DebuggerStepThrough]
public static bool IsShared (this Microsoft.EntityFrameworkCore.Metadata.IModel model, Type type);

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

Product Versions
Entity Framework Core 5.0