Knight Data Access Layer
GetDatabaseTypeForDbType Method (IDataHelper)




KellermanSoftware.NetDataAccessLayer Namespace > IDataHelper Interface : GetDatabaseTypeForDbType Method
Specifies the data type of a column
If true this represents a long text type like TEXT or NTEXT
Get the database field type for the passed standard DbType. Used internally for creating tables. Can be also used externally for code generation.
Syntax
Function GetDatabaseTypeForDbType( _
   ByVal dbType As DbType, _
   ByVal isLongText As Boolean _
) As String
Dim instance As IDataHelper
Dim dbType As DbType
Dim isLongText As Boolean
Dim value As String
 
value = instance.GetDatabaseTypeForDbType(dbType, isLongText)
string GetDatabaseTypeForDbType( 
   DbType dbType,
   bool isLongText
)
string* GetDatabaseTypeForDbType( 
   DbType dbType,
   bool isLongText
) 
String^ GetDatabaseTypeForDbType( 
   DbType dbType,
   bool isLongText
) 

Parameters

dbType
Specifies the data type of a column
isLongText
If true this represents a long text type like TEXT or NTEXT
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

IDataHelper Interface
IDataHelper Members