IConventionModelBuilder.CanHaveSharedTypeEntity(String, Type, Boolean) Method

Definition

Returns a value indicating whether the given entity type can be added to the model.

public bool CanHaveSharedTypeEntity (string name, Type? type, bool fromDataAnnotation = false);
abstract member CanHaveSharedTypeEntity : string * Type * bool -> bool
Public Function CanHaveSharedTypeEntity (name As String, type As Type, Optional fromDataAnnotation As Boolean = false) As Boolean

Parameters

name
String

The name of the entity type.

type
Type

The type of the entity type.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

true if the entity type can be added.

Applies to