Share via


RelationalElementTypeExtensions.SetStoreType Method

Definition

Overloads

SetStoreType(IMutableElementType, String)

Sets the database type of the elements.

SetStoreType(IConventionElementType, String, Boolean)

Sets the database type of the elements.

SetStoreType(IMutableElementType, String)

Sets the database type of the elements.

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)

Parameters

elementType
IMutableElementType

The element.

value
String

The value to set.

Applies to

SetStoreType(IConventionElementType, String, Boolean)

Sets the database type of the elements.

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

Parameters

elementType
IConventionElementType

The element.

value
String

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to