StringTypeMapping Constructors
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
StringTypeMapping(RelationalTypeMapping+RelationalTypeMappingParameters) |
Initializes a new instance of the StringTypeMapping class. |
StringTypeMapping(String, Nullable<DbType>, Boolean, Nullable<Int32>) |
Initializes a new instance of the StringTypeMapping class. |
StringTypeMapping(RelationalTypeMapping+RelationalTypeMappingParameters)
Initializes a new instance of the StringTypeMapping class.
protected StringTypeMapping (Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters parameters);
new Microsoft.EntityFrameworkCore.Storage.StringTypeMapping : Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters -> Microsoft.EntityFrameworkCore.Storage.StringTypeMapping
Protected Sub New (parameters As RelationalTypeMapping.RelationalTypeMappingParameters)
Parameters
Parameter object for RelationalTypeMapping.
Applies to
StringTypeMapping(String, Nullable<DbType>, Boolean, Nullable<Int32>)
Initializes a new instance of the StringTypeMapping class.
public StringTypeMapping (string storeType, System.Data.DbType? dbType = default, bool unicode = false, int? size = default);
public StringTypeMapping (string storeType, System.Data.DbType? dbType, bool unicode = false, int? size = default);
new Microsoft.EntityFrameworkCore.Storage.StringTypeMapping : string * Nullable<System.Data.DbType> * bool * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.StringTypeMapping
Public Sub New (storeType As String, Optional dbType As Nullable(Of DbType) = Nothing, Optional unicode As Boolean = false, Optional size As Nullable(Of Integer) = Nothing)
Public Sub New (storeType As String, dbType As Nullable(Of DbType), Optional unicode As Boolean = false, Optional size As Nullable(Of Integer) = Nothing)
Parameters
- storeType
- String
The name of the database type.
- unicode
- Boolean
A value indicating whether the type should handle Unicode data or not.
The size of data the property is configured to store, or null if no size is configured.
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