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.
Kommer snart: Under hela 2024 kommer vi att fasa ut GitHub-problem som feedbackmekanism för innehåll och ersätta det med ett nytt feedbacksystem. Mer information finns i:Skicka och visa feedback för