다음을 통해 공유


IMutableModel.AddEntityType 메서드

정의

오버로드

AddEntityType(String)

모델에 기본 형식의 엔터티 형식을 추가합니다.

AddEntityType(String, Type)

공유 형식 엔터티 형식을 모델에 추가합니다.

AddEntityType(Type)

모델에 엔터티 형식을 추가합니다.

AddEntityType(String, String, IMutableEntityType)

정의 탐색을 사용하여 소유 엔터티 형식을 모델에 추가합니다.

AddEntityType(Type, String, IMutableEntityType)

정의 탐색을 사용하여 소유 엔터티 형식을 모델에 추가합니다.

AddEntityType(String)

모델에 기본 형식의 엔터티 형식을 추가합니다.

public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType AddEntityType (string name);
abstract member AddEntityType : string -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function AddEntityType (name As String) As IMutableEntityType

매개 변수

name
String

추가할 엔터티의 이름입니다.

반환

새 엔터티 형식입니다.

설명

섀도 엔터티는 현재 런타임에 와 함께 DbContext사용되는 모델에서 지원되지 않습니다. 따라서 섀도 상태 엔터티 형식은 마이그레이션 모델 스냅샷 등에만 존재합니다.

적용 대상

AddEntityType(String, Type)

공유 형식 엔터티 형식을 모델에 추가합니다.

public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType AddEntityType (string name, Type type);
abstract member AddEntityType : string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function AddEntityType (name As String, type As Type) As IMutableEntityType

매개 변수

name
String

추가할 엔터티의 이름입니다.

type
Type

엔터티 형식의 인스턴스를 나타내는 데 사용되는 CLR 클래스입니다.

반환

새 엔터티 형식입니다.

설명

공유 형식 엔터티 형식은 CLR 형식을 모델의 다른 형식과 공유할 수 있지만 고유한 이름을 가지며 항상 이름으로 식별되는 엔터티 형식입니다.

적용 대상

AddEntityType(Type)

모델에 엔터티 형식을 추가합니다.

public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType AddEntityType (Type clrType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType AddEntityType (Type type);
abstract member AddEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
abstract member AddEntityType : Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function AddEntityType (clrType As Type) As IMutableEntityType
Public Function AddEntityType (type As Type) As IMutableEntityType

매개 변수

clrTypetype
Type

엔터티 형식의 인스턴스를 나타내는 데 사용되는 CLR 클래스입니다.

반환

새 엔터티 형식입니다.

적용 대상

AddEntityType(String, String, IMutableEntityType)

정의 탐색을 사용하여 소유 엔터티 형식을 모델에 추가합니다.

public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType AddEntityType (string name, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member AddEntityType : string * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function AddEntityType (name As String, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType

매개 변수

name
String

추가할 엔터티 형식의 이름입니다.

definingNavigationName
String

정의 탐색입니다.

definingEntityType
IMutableEntityType

정의하는 엔터티 형식입니다.

반환

새 엔터티 형식입니다.

적용 대상

AddEntityType(Type, String, IMutableEntityType)

정의 탐색을 사용하여 소유 엔터티 형식을 모델에 추가합니다.

public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType AddEntityType (Type clrType, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
public Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType AddEntityType (Type type, string definingNavigationName, Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType definingEntityType);
abstract member AddEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
abstract member AddEntityType : Type * string * Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType
Public Function AddEntityType (clrType As Type, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType
Public Function AddEntityType (type As Type, definingNavigationName As String, definingEntityType As IMutableEntityType) As IMutableEntityType

매개 변수

clrTypetype
Type

이 엔터티 형식의 인스턴스를 나타내는 데 사용되는 CLR 클래스입니다.

definingNavigationName
String

정의 탐색입니다.

definingEntityType
IMutableEntityType

정의하는 엔터티 형식입니다.

반환

새 엔터티 형식입니다.

적용 대상