Skip to content

SqlServerProviderTypeMap

Namespace: MJCZone.DapperMatic.Providers.SqlServer

Assembly: MJCZone.DapperMatic

Summary

Provides a type map for SQL Server, mapping .NET types to SQL Server types and vice versa.

Inheritance

Base Class: DbProviderTypeMapBase

sealed public

Contents

Constructors (1) | Methods (8)

Constructors

SqlServerProviderTypeMap

csharp
SqlServerProviderTypeMap()

Methods

MethodSummary
TryGetDotnetTypeDescriptorMatchingFullSqlTypeNameTries to get the .NET type descriptor that matches the specified full SQL type name.
TryGetDotnetTypeDescriptorMatchingFullSqlTypeNameTries to get the .NET type descriptor that matches the specified SQL type descriptor.
TryGetProviderSqlTypeMatchingDotnetTypeTries to get the SQL type descriptor that matches the specified .NET type.
TryGetProviderSqlTypeMatchingDotnetTypeTries to get the SQL type descriptor that matches the specified .NET type descriptor.
GetType
ToString
Equals
GetHashCode

TryGetDotnetTypeDescriptorMatchingFullSqlTypeName

Tries to get the .NET type descriptor that matches the specified full SQL type name.

csharp
TryGetDotnetTypeDescriptorMatchingFullSqlTypeName(
    string sqlTypeName,
    DotnetTypeDescriptor dotnetTypeDescriptor)

Parameters

  • sqlTypeName (string) - The full SQL type name.
  • dotnetTypeDescriptor (DotnetTypeDescriptor) - The .NET type descriptor, if found.

Returns

True if a matching .NET type descriptor is found; otherwise, false.

TryGetDotnetTypeDescriptorMatchingFullSqlTypeName

Tries to get the .NET type descriptor that matches the specified SQL type descriptor.

csharp
TryGetDotnetTypeDescriptorMatchingFullSqlTypeName(
    SqlTypeDescriptor sqlTypeDescriptor,
    DotnetTypeDescriptor dotnetTypeDescriptor)

Parameters

Returns

True if a matching .NET type descriptor is found; otherwise, false.

TryGetProviderSqlTypeMatchingDotnetType

Tries to get the SQL type descriptor that matches the specified .NET type.

csharp
TryGetProviderSqlTypeMatchingDotnetType(
    Type type,
    SqlTypeDescriptor sqlTypeDescriptor)

Parameters

  • type (Type) - The .NET type.
  • sqlTypeDescriptor (SqlTypeDescriptor) - The SQL type descriptor, if found.

Returns

True if a matching SQL type descriptor is found; otherwise, false.

TryGetProviderSqlTypeMatchingDotnetType

Tries to get the SQL type descriptor that matches the specified .NET type descriptor.

csharp
TryGetProviderSqlTypeMatchingDotnetType(
    DotnetTypeDescriptor dotnetTypeDescriptor,
    SqlTypeDescriptor sqlTypeDescriptor)

Parameters

Returns

True if a matching SQL type descriptor is found; otherwise, false.

GetType

csharp
GetType()

ToString

csharp
ToString()

Equals

csharp
Equals()

GetHashCode

csharp
GetHashCode()