Share via


DecimalTypeMapping Constructors

Definition

Overloads

DecimalTypeMapping(RelationalTypeMapping+RelationalTypeMappingParameters)

Initializes a new instance of the DecimalTypeMapping class.

DecimalTypeMapping(String, Nullable<DbType>)

Initializes a new instance of the DecimalTypeMapping class.

DecimalTypeMapping(String, Nullable<DbType>, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the DecimalTypeMapping class.

DecimalTypeMapping(RelationalTypeMapping+RelationalTypeMappingParameters)

Initializes a new instance of the DecimalTypeMapping class.

protected DecimalTypeMapping (Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters parameters);
new Microsoft.EntityFrameworkCore.Storage.DecimalTypeMapping : Microsoft.EntityFrameworkCore.Storage.RelationalTypeMapping.RelationalTypeMappingParameters -> Microsoft.EntityFrameworkCore.Storage.DecimalTypeMapping
Protected Sub New (parameters As RelationalTypeMapping.RelationalTypeMappingParameters)

Parameters

Applies to

DecimalTypeMapping(String, Nullable<DbType>)

Initializes a new instance of the DecimalTypeMapping class.

public DecimalTypeMapping (string storeType, System.Data.DbType? dbType = default);
new Microsoft.EntityFrameworkCore.Storage.DecimalTypeMapping : string * Nullable<System.Data.DbType> -> Microsoft.EntityFrameworkCore.Storage.DecimalTypeMapping
Public Sub New (storeType As String, Optional dbType As Nullable(Of DbType) = Nothing)

Parameters

storeType
String

The name of the database type.

dbType
Nullable<DbType>

The DbType to be used.

Applies to

DecimalTypeMapping(String, Nullable<DbType>, Nullable<Int32>, Nullable<Int32>)

Initializes a new instance of the DecimalTypeMapping class.

public DecimalTypeMapping (string storeType, System.Data.DbType? dbType = default, int? precision = default, int? scale = default);
public DecimalTypeMapping (string storeType, System.Data.DbType? dbType = 7, int? precision = default, int? scale = default);
new Microsoft.EntityFrameworkCore.Storage.DecimalTypeMapping : string * Nullable<System.Data.DbType> * Nullable<int> * Nullable<int> -> Microsoft.EntityFrameworkCore.Storage.DecimalTypeMapping
Public Sub New (storeType As String, Optional dbType As Nullable(Of DbType) = Nothing, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing)
Public Sub New (storeType As String, Optional dbType As Nullable(Of DbType) = 7, Optional precision As Nullable(Of Integer) = Nothing, Optional scale As Nullable(Of Integer) = Nothing)

Parameters

storeType
String

The name of the database type.

dbType
Nullable<DbType>

The DbType to be used.

precision
Nullable<Int32>

The precision of data the property is configured to store, or null if the default precision is required.

scale
Nullable<Int32>

The scale of data the property is configured to store, or null if the default scale is required.

Applies to