IProviderTypeMapping ​
Namespace: MJCZone.DapperMatic.Providers.Base
Assembly: MJCZone.DapperMatic
Summary ​
Interface for provider-specific type mapping configuration. This abstracts provider-specific type constants and behavior.
abstract
public
Note: This is an interface that defines a contract. Look for implementing classes in the same or related namespaces.
Contents ​
Methods (7) | Properties (4)
Methods ​
Method | Summary |
---|---|
CreateGuidType | Creates a provider-specific GUID type descriptor. |
CreateObjectType | Creates a provider-specific object type descriptor. |
CreateTextType | Creates a provider-specific text type descriptor. |
CreateDateTimeType | Creates a provider-specific DateTime type descriptor. |
CreateBinaryType | Creates a provider-specific binary type descriptor. |
CreateXmlType | Creates a provider-specific XML type descriptor. |
GetSupportedGeometryTypes | Gets the geometry types supported by this provider for registration. |
CreateGuidType ​
Creates a provider-specific GUID type descriptor.
SqlTypeDescriptor CreateGuidType()
Returns ​
Type: SqlTypeDescriptor
SQL type descriptor for GUID storage.
CreateObjectType ​
Creates a provider-specific object type descriptor.
SqlTypeDescriptor CreateObjectType()
Returns ​
Type: SqlTypeDescriptor
SQL type descriptor for object storage.
CreateTextType ​
Creates a provider-specific text type descriptor.
SqlTypeDescriptor CreateTextType(DotnetTypeDescriptor descriptor)
Parameters ​
- descriptor (DotnetTypeDescriptor) - The .NET type descriptor with length and unicode information.
Returns ​
Type: SqlTypeDescriptor
SQL type descriptor for text storage.
CreateDateTimeType ​
Creates a provider-specific DateTime type descriptor.
SqlTypeDescriptor CreateDateTimeType(DotnetTypeDescriptor descriptor)
Parameters ​
- descriptor (DotnetTypeDescriptor) - The .NET type descriptor with precision information.
Returns ​
Type: SqlTypeDescriptor
SQL type descriptor for DateTime storage.
CreateBinaryType ​
Creates a provider-specific binary type descriptor.
SqlTypeDescriptor CreateBinaryType(DotnetTypeDescriptor descriptor)
Parameters ​
- descriptor (DotnetTypeDescriptor) - The .NET type descriptor with length and fixed-length information.
Returns ​
Type: SqlTypeDescriptor
SQL type descriptor for binary storage.
CreateXmlType ​
Creates a provider-specific XML type descriptor.
SqlTypeDescriptor CreateXmlType()
Returns ​
Type: SqlTypeDescriptor
SQL type descriptor for XML storage.
GetSupportedGeometryTypes ​
Gets the geometry types supported by this provider for registration.
Type[] GetSupportedGeometryTypes()
Returns ​
Type: Type[]
Array of geometry types supported by this provider.
Properties ​
BooleanType ​
Gets the provider-specific boolean SQL type.
Type: string
EnumStringType ​
Gets the provider-specific enum string SQL type.
Type: string
IsUnicodeProvider ​
Gets a value indicating whether this provider supports Unicode by default.
Type: bool
NumericTypeMap ​
Gets the mapping of .NET numeric types to provider-specific SQL types.
Type: Dictionary<Type, string>