Class TypeMapBase
Inheritance
TypeMapBase
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Generators.Base
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public abstract class TypeMapBase : ITypeMap
Constructors
| Edit this page View SourceTypeMapBase()
Declaration
protected TypeMapBase()
Fields
| Edit this page View SourcePrecisionPlaceholder
Declaration
protected const string PrecisionPlaceholder = "$precision"
Field Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceGetTypeMap(DbType, int, int)
Get the SQL type for a DbType
Declaration
[Obsolete]
public virtual 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
public virtual 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 |
SetTypeMap(DbType, string)
Declaration
protected void SetTypeMap(DbType type, string template)
Parameters
Type | Name | Description |
---|---|---|
DbType | type | |
string | template |
SetTypeMap(DbType, string, int)
Declaration
protected void SetTypeMap(DbType type, string template, int maxSize)
Parameters
Type | Name | Description |
---|---|---|
DbType | type | |
string | template | |
int | maxSize |
SetupTypeMaps()
Declaration
protected abstract void SetupTypeMaps()