Table of Contents

Class DbTypeExtensions

Namespace
Cuemon.Extensions.Data
Assembly
Cuemon.Extensions.Data.dll

Extension methods for the System.Data.DbType enumeration.

public static class DbTypeExtensions
Inheritance
Object
DbTypeExtensions

Methods

ToType(DbType)

Provides the equivalent System.Type of a System.Data.DbType enumeration value.

public static Type ToType(this DbType dbType)

Parameters

dbType DbType

The System.Data.DbType to extend.

Returns

Type

The equivalent System.Type of a System.Data.DbType enumeration value.

Exceptions

System.ArgumentOutOfRangeException

dbType value is not valid.