Table of Contents

Class DbTypeDecoratorExtensions

Namespace
Cuemon.Data
Assembly
Cuemon.Data.dll

Extension methods for the DbType enumeration hidden behind the IDecorator<T> interface.

public static class DbTypeDecoratorExtensions
Inheritance
DbTypeDecoratorExtensions

Methods

ToType(IDecorator<DbType>)

Provides the equivalent Type of the underlying DbType enumeration value of the decorator.

public static Type ToType(this IDecorator<DbType> decorator)

Parameters

decorator IDecorator<DbType>

The IDecorator<T> to extend.

Returns

Type

The equivalent Type of the underlying DbType enumeration value of the decorator.

Exceptions

ArgumentNullException

decorator is null or its underlying value is null.

ArgumentOutOfRangeException

decorator underlying value is not valid.

See Also