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

プロパティが保持する値の型。

戻り値

新しく作成されたプロパティ。

適用対象