Knight Data Access Layer
GetFieldType Method (BaseDatabaseProvider)




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

Parameters

tableName
The table name
fieldName
The name of the field in the table
typeString
The provider specific datbase type
nullable
True when the field is nullable
Example
bigint will return a .net type 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