C# Class Dashing.Extensions.TypeExtensions

The type extensions.
Show file Open project: Polylytics/dashing

Public Methods

Method Description
DefaultFor ( this dbType, bool isNullable ) : string
GetAncestorTypes ( this type ) : IEnumerable

Return all the implemented or inherited interfaces and the full hierarchy of base types

GetCLRType ( this dbType ) : Type

Provides the CLR type for a particular DbType

GetDbType ( this type ) : DbType

The get db type.

IsCollection ( this type ) : bool

The is collection.

IsEntityType ( this type ) : bool

The is entity type.

IsImplementationOf ( this thisType, Type type ) : bool

The is implementation of.

IsNullable ( this type ) : bool

The is nullable.

TypeTakesLength ( this type ) : bool
TypeTakesPrecisionAndScale ( this type ) : bool

Method Details

DefaultFor() public static method

public static DefaultFor ( this dbType, bool isNullable ) : string
dbType this
isNullable bool
return string

GetAncestorTypes() public static method

Return all the implemented or inherited interfaces and the full hierarchy of base types
public static GetAncestorTypes ( this type ) : IEnumerable
type this The type to inspect
return IEnumerable

GetCLRType() public static method

Provides the CLR type for a particular DbType
public static GetCLRType ( this dbType ) : Type
dbType this
return System.Type

GetDbType() public static method

The get db type.
///
public static GetDbType ( this type ) : DbType
type this /// The type. ///
return DbType

IsCollection() public static method

The is collection.
public static IsCollection ( this type ) : bool
type this /// The type. ///
return bool

IsEntityType() public static method

The is entity type.
public static IsEntityType ( this type ) : bool
type this /// The type. ///
return bool

IsImplementationOf() public static method

The is implementation of.
public static IsImplementationOf ( this thisType, Type type ) : bool
thisType this /// The this type. ///
type System.Type /// The type. ///
return bool

IsNullable() public static method

The is nullable.
public static IsNullable ( this type ) : bool
type this /// The type. ///
return bool

TypeTakesLength() public static method

public static TypeTakesLength ( this type ) : bool
type this
return bool

TypeTakesPrecisionAndScale() public static method

public static TypeTakesPrecisionAndScale ( this type ) : bool
type this
return bool