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

指出是否已使用資料批註指定組態。

傳回

已設定的值。

適用於