Interface IDbStringTypeConverter
Provides an interface to convert from database types or database schema tables to .net types.
Namespace: Paradigm.ORM.Data.Converters
Assembly: Paradigm.ORM.Data.dll
Syntax
public interface IDbStringTypeConverter
Methods
| Improve this Doc View SourceGetDbStringType(Type)
Gets the equivalent database type from a .net type.
Declaration
string GetDbStringType(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | The .net type. |
Returns
Type | Description |
---|---|
System.String | The equivalent database type. |
GetType(IColumn)
Gets the equivalent .net type from a column schema.
Declaration
Type GetType(IColumn column)
Parameters
Type | Name | Description |
---|---|---|
IColumn | column | The column schema. |
Returns
Type | Description |
---|---|
Type | The equivalent .net type. |
GetType(IParameter)
Gets the equivalent .net type from a parameter schema.
Declaration
Type GetType(IParameter parameter)
Parameters
Type | Name | Description |
---|---|---|
IParameter | parameter | The parameter schema. |
Returns
Type | Description |
---|---|
Type | The equivalent .net type. |
GetType(String, Boolean)
Gets the equivalent .net type from a database type.
Declaration
Type GetType(string dbType, bool isNullable = false)
Parameters
Type | Name | Description |
---|---|---|
System.String | dbType | A database type. |
System.Boolean | isNullable | True if the value is nullable; false otherwise. |
Returns
Type | Description |
---|---|
Type | The equivalent .net type. |