DotnetTypeToSqlTypeConverter
Namespace: MJCZone.DapperMatic.Converters
Assembly: MJCZone.DapperMatic
Summary
.NET Type to SQL Type converter.
Inheritance
Implemented Interfaces:
- IDbTypeConverter
public
Contents
Constructors (1) | Methods (5) | Properties (1)
Constructors
DotnetTypeToSqlTypeConverter
Initializes a new instance of the DotnetTypeToSqlTypeConverter class.
csharp
DotnetTypeToSqlTypeConverter(DotnetTypeDescriptor convertFunc)Parameters
- convertFunc (DotnetTypeDescriptor) - .
Methods
TryConvert
Tries to convert a DotnetTypeDescriptor to a SqlTypeDescriptor.
csharp
TryConvert(DotnetTypeDescriptor from, SqlTypeDescriptor to)Parameters
- from (DotnetTypeDescriptor) - to convert from.
- to (SqlTypeDescriptor) - , 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 DotnetTypeDescriptor to SqlTypeDescriptor.
Type: Func<DotnetTypeDescriptor, SqlTypeDescriptor?>