RelationalElementTypeExtensions.SetStoreType Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for