Skip to content

SqlTypeToDotnetTypeConverter ​

Namespace: MJCZone.DapperMatic.Converters

Assembly: MJCZone.DapperMatic

Summary ​

Converts a SqlTypeDescriptor to a DotnetTypeDescriptor.

Inheritance ​

Implemented Interfaces:

  • IDbTypeConverter

public

Contents ​

Constructors (1) | Methods (5) | Properties (1)

Constructors ​

SqlTypeToDotnetTypeConverter ​

Initializes a new instance of the SqlTypeToDotnetTypeConverter class.

csharp
SqlTypeToDotnetTypeConverter(SqlTypeDescriptor convertFunc)

Parameters ​

Methods ​

TryConvert ​

Tries to convert a SqlTypeDescriptor to a DotnetTypeDescriptor.

csharp
TryConvert(SqlTypeDescriptor from, DotnetTypeDescriptor to)

Parameters ​

Returns ​

True if the conversion was successful; otherwise, false.

GetType ​

csharp
GetType()

ToString ​

csharp
ToString()

Equals ​

csharp
Equals()

GetHashCode ​

csharp
GetHashCode()

Properties ​

ConvertFunc ​

Gets the function used for converting SqlTypeDescriptor to DotnetTypeDescriptor.

Type: Func<SqlTypeDescriptor, DotnetTypeDescriptor?>