Knight Data Access Layer
GetDatabaseTypeForDbType Method (DataHelper)




KellermanSoftware.NetDataAccessLayer Namespace > DataHelper Class : 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
Public Function GetDatabaseTypeForDbType( _
   ByVal dbType As DbType, _
   ByVal isLongText As Boolean _
) As String
Dim instance As DataHelper
Dim dbType As DbType
Dim isLongText As Boolean
Dim value As String
 
value = instance.GetDatabaseTypeForDbType(dbType, isLongText)
public string GetDatabaseTypeForDbType( 
   DbType dbType,
   bool isLongText
)
public: string* GetDatabaseTypeForDbType( 
   DbType dbType,
   bool isLongText
) 
public:
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

DataHelper Class
DataHelper Members