次の方法で共有


IConventionModelBuilder.Entity メソッド

定義

オーバーロード

Entity(String, String, IConventionEntityType, Boolean)

ナビゲーションを定義して特定のエンティティ型を構成するために使用できるオブジェクトを返します。 指定された名前のエンティティ型がまだモデルに含まれていない場合は、新しいシャドウ エンティティ型がモデルに追加されます。

Entity(Type, String, IConventionEntityType, Boolean)

ナビゲーションを定義して特定のエンティティ型を構成するために使用できるオブジェクトを返します。 指定された型のエンティティ型がまだモデルに含まれていない場合は、新しいエンティティ型がモデルに追加されます。

Entity(String, Nullable<Boolean>, Boolean)

モデル内の特定のエンティティ型を構成するために使用できる オブジェクトを返します。 指定された名前のエンティティ型がまだモデルに含まれていない場合は、新しいシャドウ エンティティ型がモデルに追加されます。

Entity(Type, Nullable<Boolean>, Boolean)

モデル内の特定のエンティティ型を構成するために使用できる オブジェクトを返します。 指定された型のエンティティ型がまだモデルに含まれていない場合は、新しいエンティティ型がモデルに追加されます。

Entity(String, String, IConventionEntityType, Boolean)

ナビゲーションを定義して特定のエンティティ型を構成するために使用できるオブジェクトを返します。 指定された名前のエンティティ型がまだモデルに含まれていない場合は、新しいシャドウ エンティティ型がモデルに追加されます。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder Entity (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? Entity (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType, bool fromDataAnnotation = false);
abstract member Entity : string * string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function Entity (name As String, definingNavigationName As String, definingEntityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

パラメーター

name
String

構成するエンティティ型の名前。

definingNavigationName
String

定義ナビゲーション。

definingEntityType
IConventionEntityType

定義するエンティティ型。

fromDataAnnotation
Boolean

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

戻り値

エンティティ型が追加された場合、または既にモデル null の一部である場合にエンティティ型を構成するために使用できるオブジェクト。それ以外の場合は 。

適用対象

Entity(Type, String, IConventionEntityType, Boolean)

ナビゲーションを定義して特定のエンティティ型を構成するために使用できるオブジェクトを返します。 指定された型のエンティティ型がまだモデルに含まれていない場合は、新しいエンティティ型がモデルに追加されます。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder Entity (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? Entity (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType definingEntityType, bool fromDataAnnotation = false);
abstract member Entity : Type * string * Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function Entity (type As Type, definingNavigationName As String, definingEntityType As IConventionEntityType, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

パラメーター

type
Type

構成するエンティティ型の型。

definingNavigationName
String

定義ナビゲーション。

definingEntityType
IConventionEntityType

定義するエンティティ型。

fromDataAnnotation
Boolean

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

戻り値

エンティティ型が追加された場合、または既にモデル null の一部である場合にエンティティ型を構成するために使用できるオブジェクト。それ以外の場合は 。

適用対象

Entity(String, Nullable<Boolean>, Boolean)

モデル内の特定のエンティティ型を構成するために使用できる オブジェクトを返します。 指定された名前のエンティティ型がまだモデルに含まれていない場合は、新しいシャドウ エンティティ型がモデルに追加されます。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder Entity (string name, bool? shouldBeOwned = False, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? Entity (string name, bool? shouldBeOwned = False, bool fromDataAnnotation = false);
abstract member Entity : string * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function Entity (name As String, Optional shouldBeOwned As Nullable(Of Boolean) = False, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

パラメーター

name
String

構成するエンティティ型の名前。

shouldBeOwned
Nullable<Boolean>

true エンティティ型を所有する必要がある場合は 、 false エンティティ型を所有しない場合は

fromDataAnnotation
Boolean

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

戻り値

エンティティ型が追加された場合、または既にモデル null の一部である場合にエンティティ型を構成するために使用できるオブジェクト。それ以外の場合は 。

適用対象

Entity(Type, Nullable<Boolean>, Boolean)

モデル内の特定のエンティティ型を構成するために使用できる オブジェクトを返します。 指定された型のエンティティ型がまだモデルに含まれていない場合は、新しいエンティティ型がモデルに追加されます。

public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder Entity (Type type, bool? shouldBeOwned = False, bool fromDataAnnotation = false);
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder? Entity (Type type, bool? shouldBeOwned = False, bool fromDataAnnotation = false);
abstract member Entity : Type * Nullable<bool> * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder
Public Function Entity (type As Type, Optional shouldBeOwned As Nullable(Of Boolean) = False, Optional fromDataAnnotation As Boolean = false) As IConventionEntityTypeBuilder

パラメーター

type
Type

構成するエンティティ型の型。

shouldBeOwned
Nullable<Boolean>

true エンティティ型を所有する必要がある場合は 、 false エンティティ型を所有しない場合は

fromDataAnnotation
Boolean

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

戻り値

エンティティ型が追加された場合、または既にモデル null の一部である場合にエンティティ型を構成するために使用できるオブジェクト。それ以外の場合は 。

適用対象