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 MJCZone.DapperMatic.Converters.DotnetTypeToSqlTypeConverter
class.
csharp
DotnetTypeToSqlTypeConverter(DotnetTypeDescriptor convertFunc)
Parameters ​
- convertFunc (DotnetTypeDescriptor) - .
Methods ​
TryConvert ​
Tries to convert a MJCZone.DapperMatic.DotnetTypeDescriptor
to a MJCZone.DapperMatic.SqlTypeDescriptor
.
csharp
void 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
void GetType()
ToString ​
csharp
void ToString()
Equals ​
csharp
void Equals()
GetHashCode ​
csharp
void GetHashCode()
Properties ​
ConvertFunc ​
Gets the function used for converting MJCZone.DapperMatic.DotnetTypeDescriptor
to MJCZone.DapperMatic.SqlTypeDescriptor
.
Type: Func<DotnetTypeDescriptor, SqlTypeDescriptor?>