TypeMappingDefaults
Namespace: MJCZone.DapperMatic.Providers
Assembly: MJCZone.DapperMatic
Summary
Provides default values used across all database providers for type mapping operations.
static public
Contents
Methods (4) | Properties (4) | Fields (2)
Methods
GetType
GetType()ToString
ToString()Equals
Equals()GetHashCode
GetHashCode()Properties
DefaultStringLength
Gets the default length for string/varchar columns when no length is specified.
Type: int
DefaultBinaryLength
Gets the default length for binary/varbinary columns when no length is specified.
Type: int
DefaultDecimalPrecision
Gets the default precision for decimal/numeric columns.
Type: int
DefaultDecimalScale
Gets the default scale for decimal/numeric columns.
Type: int
Fields
GuidStringLength
String length required to store a GUID as a string.
Type: object
MaxLength
Represents maximum/unlimited length for text columns. Value of -1 is used as a semantic marker for unlimited/MAX types across all providers. For backward compatibility, both -1 and int.MaxValue are accepted when creating columns. When reading columns, all providers normalize to -1 for consistency.
Type: object