Knight Data Access Layer
GetFieldType Method (VistaDb5Net40Provider)




KellermanSoftware.NetDataAccessLayer.Providers Namespace > VistaDb5Net40Provider Class : GetFieldType Method
The name of the table
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 Overrides Function GetFieldType( _
   ByVal tableName As String, _
   ByVal fieldName As String, _
   ByVal typeString As String, _
   ByVal nullable As Boolean _
) As Type
Dim instance As VistaDb5Net40Provider
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 override Type GetFieldType( 
   string tableName,
   string fieldName,
   string typeString,
   bool nullable
)
public: Type* GetFieldType( 
   string* tableName,
   string* fieldName,
   string* typeString,
   bool nullable
) override 
public:
Type^ GetFieldType( 
   String^ tableName,
   String^ fieldName,
   String^ typeString,
   bool nullable
) override 

Parameters

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

VistaDb5Net40Provider Class
VistaDb5Net40Provider Members