Skip to content

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 ​

MethodSummary
CreateGuidTypeCreates a provider-specific GUID type descriptor.
CreateObjectTypeCreates a provider-specific object type descriptor.
CreateTextTypeCreates a provider-specific text type descriptor.
CreateDateTimeTypeCreates a provider-specific DateTime type descriptor.
CreateBinaryTypeCreates a provider-specific binary type descriptor.
CreateXmlTypeCreates a provider-specific XML type descriptor.
GetSupportedGeometryTypesGets the geometry types supported by this provider for registration.

CreateGuidType ​

Creates a provider-specific GUID type descriptor.

csharp
SqlTypeDescriptor CreateGuidType()

Returns ​

Type: SqlTypeDescriptor

SQL type descriptor for GUID storage.

CreateObjectType ​

Creates a provider-specific object type descriptor.

csharp
SqlTypeDescriptor CreateObjectType()

Returns ​

Type: SqlTypeDescriptor

SQL type descriptor for object storage.

CreateTextType ​

Creates a provider-specific text type descriptor.

csharp
SqlTypeDescriptor CreateTextType(DotnetTypeDescriptor descriptor)

Parameters ​

Returns ​

Type: SqlTypeDescriptor

SQL type descriptor for text storage.

CreateDateTimeType ​

Creates a provider-specific DateTime type descriptor.

csharp
SqlTypeDescriptor CreateDateTimeType(DotnetTypeDescriptor descriptor)

Parameters ​

Returns ​

Type: SqlTypeDescriptor

SQL type descriptor for DateTime storage.

CreateBinaryType ​

Creates a provider-specific binary type descriptor.

csharp
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.

csharp
SqlTypeDescriptor CreateXmlType()

Returns ​

Type: SqlTypeDescriptor

SQL type descriptor for XML storage.

GetSupportedGeometryTypes ​

Gets the geometry types supported by this provider for registration.

csharp
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>