次の方法で共有


IConventionModelBuilder.CanHaveSharedTypeEntity(String, Type, Boolean) メソッド

定義

指定したエンティティ型をモデルに追加できるかどうかを示す値を返します。

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

パラメーター

name
String

エンティティ型の名前。

type
Type

エンティティ型の型。

fromDataAnnotation
Boolean

構成がデータ注釈を使用して指定されたかどうかを示します。

戻り値

true エンティティ型を追加できる場合は 。

適用対象