Class TypeMapBase
Inheritance
TypeMapBase
FluentMigrator.Runner.Generators.SqlAnywhere.SqlAnywhere16TypeMap
FluentMigrator.Runner.Generators.SqlAnywhere.SqlAnywhere16TypeMap
FluentMigrator.Runner.Generators.SqlAnywhere.SqlAnywhere16TypeMap
FluentMigrator.Runner.Generators.SqlServer.SqlServerCeTypeMap
FluentMigrator.Runner.Generators.SqlServer.SqlServerCeTypeMap
FluentMigrator.Runner.Generators.SqlServer.SqlServerCeTypeMap
Implements
Inherited Members
Namespace: FluentMigrator.Runner.Generators.Base
Assembly: FluentMigrator.Runner.Core.dll
Syntax
public abstract class TypeMapBase : ITypeMap
Constructors
TypeMapBase()
Declaration
protected TypeMapBase()
Fields
PrecisionPlaceholder
Declaration
protected const string PrecisionPlaceholder = "$precision"
Field Value
Type | Description |
---|---|
string |
Methods
GetTypeMap(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()