Class DbTypeDecoratorExtensions
- Namespace
- Cuemon.Data
- Assembly
- Cuemon.Data.dll
Extension methods for the System.Data.DbType enumeration hidden behind the IDecorator<T> interface.
public static class DbTypeDecoratorExtensions
- Inheritance
-
ObjectDbTypeDecoratorExtensions
Methods
ToType(IDecorator<DbType>)
Provides the equivalent System.Type of the underlying System.Data.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 System.Type of the underlying System.Data.DbType enumeration value of the
decorator
.
Exceptions
- System.ArgumentNullException
decorator
is null or its underlying value is null.- ArgumentOutOfRangeException
decorator
underlying value is not valid.
See Also
IDecorator<T>
Decorator<T>