Sdílet prostřednictvím


IConventionModelBuilder.CanHaveSharedTypeEntity(String, Type, Boolean) Metoda

Definice

Vrátí hodnotu označující, jestli lze daný typ entity přidat do modelu.

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

Parametry

name
String

Název typu entity.

type
Type

Typ entity.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

true pokud je možné přidat typ entity.

Platí pro