다음을 통해 공유


MutableEntityTypeExtensions.AddIndexerProperty 메서드

정의

인덱서에서 백업한 속성을 이 엔터티 형식에 추가합니다.

public static Microsoft.EntityFrameworkCore.Metadata.IMutableProperty AddIndexerProperty (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string name, Type propertyType);
static member AddIndexerProperty : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string * Type -> Microsoft.EntityFrameworkCore.Metadata.IMutableProperty
<Extension()>
Public Function AddIndexerProperty (entityType As IMutableEntityType, name As String, propertyType As Type) As IMutableProperty

매개 변수

entityType
IMutableEntityType

엔터티 형식입니다.

name
String

추가할 속성의 이름입니다.

propertyType
Type

속성이 보유할 값의 형식입니다.

반환

새로 만든 속성입니다.

적용 대상