Knight Data Access Layer
GetDbType Method (BaseDatabaseProvider)




KellermanSoftware.NetDataAccessLayer Namespace > BaseDatabaseProvider Class : GetDbType Method
The name of the table
The name of the field in the table
The provider specific database type
Get a DbType associated with a string from a database
Syntax
Public Overridable Function GetDbType( _
   ByVal tableName As String, _
   ByVal fieldName As String, _
   ByVal typeString As String _
) As DbType
Dim instance As BaseDatabaseProvider
Dim tableName As String
Dim fieldName As String
Dim typeString As String
Dim value As DbType
 
value = instance.GetDbType(tableName, fieldName, typeString)
public virtual DbType GetDbType( 
   string tableName,
   string fieldName,
   string typeString
)
public: virtual DbType GetDbType( 
   string* tableName,
   string* fieldName,
   string* typeString
) 
public:
virtual DbType GetDbType( 
   String^ tableName,
   String^ fieldName,
   String^ typeString
) 

Parameters

tableName
The name of the table
fieldName
The name of the field in the table
typeString
The provider specific database type
Example
bigint will return a DbType of Int64
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