Knight Data Access Layer
GetDatabaseTypeForDbType Method (BaseDatabaseProvider)




KellermanSoftware.NetDataAccessLayer Namespace > BaseDatabaseProvider Class : GetDatabaseTypeForDbType Method
Specifies the data type of a column
If true this represents a long text type like TEXT, NTEXT, MEMO etc
Get the database field type for the passed standard DbType
Syntax
Public MustOverride Function GetDatabaseTypeForDbType( _
   ByVal dbType As Nullable(Of DbType), _
   ByVal isLongText As Boolean _
) As String
Dim instance As BaseDatabaseProvider
Dim dbType As Nullable(Of DbType)
Dim isLongText As Boolean
Dim value As String
 
value = instance.GetDatabaseTypeForDbType(dbType, isLongText)
public abstract string GetDatabaseTypeForDbType( 
   Nullable<DbType> dbType,
   bool isLongText
)
public: abstract string* GetDatabaseTypeForDbType( 
   Nullable<DbType> dbType,
   bool isLongText
) 
public:
abstract String^ GetDatabaseTypeForDbType( 
   Nullable<DbType> dbType,
   bool isLongText
) 

Parameters

dbType
Specifies the data type of a column
isLongText
If true this represents a long text type like TEXT, NTEXT, MEMO etc
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

BaseDatabaseProvider Class
BaseDatabaseProvider Members