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
- convertFunc (SqlTypeDescriptor) - .
Methods
TryConvert
Tries to convert a SqlTypeDescriptor to a DotnetTypeDescriptor.
csharp
TryConvert(SqlTypeDescriptor from, DotnetTypeDescriptor to)Parameters
- from (SqlTypeDescriptor) - to convert from.
- to (DotnetTypeDescriptor) - , if the conversion was successful.
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?>