次の方法で共有


RelationalElementTypeExtensions.SetStoreType メソッド

定義

オーバーロード

SetStoreType(IMutableElementType, String)

要素のデータベース型を設定します。

SetStoreType(IConventionElementType, String, Boolean)

要素のデータベース型を設定します。

SetStoreType(IMutableElementType, String)

要素のデータベース型を設定します。

public static void SetStoreType (this Microsoft.EntityFrameworkCore.Metadata.IMutableElementType elementType, string? value);
static member SetStoreType : Microsoft.EntityFrameworkCore.Metadata.IMutableElementType * string -> unit
<Extension()>
Public Sub SetStoreType (elementType As IMutableElementType, value As String)

パラメーター

elementType
IMutableElementType

要素。

value
String

設定する値。

適用対象

SetStoreType(IConventionElementType, String, Boolean)

要素のデータベース型を設定します。

public static string? SetStoreType (this Microsoft.EntityFrameworkCore.Metadata.IConventionElementType elementType, string? value, bool fromDataAnnotation = false);
static member SetStoreType : Microsoft.EntityFrameworkCore.Metadata.IConventionElementType * string * bool -> string
<Extension()>
Public Function SetStoreType (elementType As IConventionElementType, value As String, Optional fromDataAnnotation As Boolean = false) As String

パラメーター

elementType
IConventionElementType

要素。

value
String

設定する値。

fromDataAnnotation
Boolean

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

戻り値

構成された値です。

適用対象