Share via


AdoDotNetMappedObjectConverter.GetDbTypeFromNativeType Method

Converts the specified native type to a DbType type that is used by an ADO.NET data provider.

Namespace:  Microsoft.VisualStudio.Data.Framework.AdoDotNet
Assembly:  Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)

Syntax

'Declaration
Protected Overridable Function GetDbTypeFromNativeType ( _
    nativeType As String _
) As DbType
protected virtual DbType GetDbTypeFromNativeType(
    string nativeType
)
protected:
virtual DbType GetDbTypeFromNativeType(
    String^ nativeType
)
abstract GetDbTypeFromNativeType : 
        nativeType:string -> DbType  
override GetDbTypeFromNativeType : 
        nativeType:string -> DbType
protected function GetDbTypeFromNativeType(
    nativeType : String
) : DbType

Parameters

  • nativeType
    Type: System.String

    A string containing the name of the native type to convert.

Return Value

Type: System.Data.DbType
A DbType type, or a DbType.Object if the native type is not found.

.NET Framework Security

See Also

Reference

AdoDotNetMappedObjectConverter Class

Microsoft.VisualStudio.Data.Framework.AdoDotNet Namespace