Interface ITypeMap
A map of DbType to an SQL type
Namespace: FluentMigrator.Runner.Generators
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public interface ITypeMap
Methods
GetTypeMap(DbType, int, int)
Get the SQL type for a DbType
Declaration
[NotNull]
[Obsolete]
string GetTypeMap(DbType type, int size, int precision)
Parameters
| Type | Name | Description |
|---|---|---|
| DbType | type | The DbType to get the SQL type for |
| int | size | The requested size (in DB lingua: precision) |
| int | precision | The requested precision (in DB lingua: scale) |
Returns
| Type | Description |
|---|---|
| string | The SQL type |
GetTypeMap(DbType, int?, int?)
Get the SQL type for a DbType
Declaration
[NotNull]
string GetTypeMap(DbType type, int? size, int? precision)
Parameters
| Type | Name | Description |
|---|---|---|
| DbType | type | The DbType to get the SQL type for |
| int? | size | The requested size (in DB lingua: precision) |
| int? | precision | The requested precision (in DB lingua: scale) |
Returns
| Type | Description |
|---|---|
| string | The SQL type |