IDbProviderTypeMap ​
Namespace: MJCZone.DapperMatic.Providers
Assembly: MJCZone.DapperMatic
Summary ​
Represents a mapping between .NET types and SQL types.
abstract
public
Note: This is an interface that defines a contract. Look for implementing classes in the same or related namespaces.
Contents ​
Methods (4)
Methods ​
TryGetDotnetTypeDescriptorMatchingFullSqlTypeName ​
Converts the SQL type name to a .NET type with appropriate type property descriptors, such as length, precision, and scale among other things.
void TryGetDotnetTypeDescriptorMatchingFullSqlTypeName(string sqlTypeName, DotnetTypeDescriptor dotnetTypeDescriptor)
Parameters ​
- sqlTypeName (string) - The sql type name including the length, precision, and/or scale (e.g., nvarchar(255), varchar(max), decimal(16,4), etc...)
- dotnetTypeDescriptor (DotnetTypeDescriptor) - A corresponding .NET type descriptor object, or null.
Returns ​
true/false.
TryGetDotnetTypeDescriptorMatchingFullSqlTypeName ​
Converts the SQL type descriptor to a .NET type with appropriate type property descriptors, such as length, precision, and scale among other things.
void TryGetDotnetTypeDescriptorMatchingFullSqlTypeName(SqlTypeDescriptor sqlTypeDescriptor, DotnetTypeDescriptor dotnetTypeDescriptor)
Parameters ​
- sqlTypeDescriptor (SqlTypeDescriptor) - The sql type descriptor including the length, precision, and/or scale among other things.
- dotnetTypeDescriptor (DotnetTypeDescriptor) - A corresponding .NET type descriptor object, or null.
Returns ​
true/false.
TryGetProviderSqlTypeMatchingDotnetType ​
Converts the .NET type to a SQL type with appropriate type property descriptors, such as length, precision, and scale among other things.
void TryGetProviderSqlTypeMatchingDotnetType(Type type, SqlTypeDescriptor sqlTypeDescriptor)
Parameters ​
- type (Type) - The .NET type to convert to a SQL type.
- sqlTypeDescriptor (SqlTypeDescriptor) - A corresponding SQL type descriptor object, or null.
Returns ​
true/false.
TryGetProviderSqlTypeMatchingDotnetType ​
Converts the .NET type descriptor to a SQL type with appropriate type property descriptors, such as length, precision, and scale among other things.
void TryGetProviderSqlTypeMatchingDotnetType(DotnetTypeDescriptor dotnetTypeDescriptor, SqlTypeDescriptor sqlTypeDescriptor)
Parameters ​
- dotnetTypeDescriptor (DotnetTypeDescriptor) - The .NET type descriptor to convert to a SQL type.
- sqlTypeDescriptor (SqlTypeDescriptor) - A corresponding SQL type descriptor object, or null.
Returns ​
true/false.