IConventionProperty.SetElementType(Type, Boolean) メソッド

定義

このプロパティで表されるプリミティブ コレクションの要素の構成を設定します。

public Microsoft.EntityFrameworkCore.Metadata.IConventionElementType? SetElementType (Type? elementType, bool fromDataAnnotation = false);
abstract member SetElementType : Type * bool -> Microsoft.EntityFrameworkCore.Metadata.IConventionElementType
Public Function SetElementType (elementType As Type, Optional fromDataAnnotation As Boolean = false) As IConventionElementType

パラメーター

elementType
Type

の場合 true、型マッピングには要素型があり、それ以外の場合は削除されます。

fromDataAnnotation
Boolean

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

戻り値

要素の構成。

適用対象