C# 클래스 Dashing.Extensions.TypeExtensions

The type extensions.
파일 보기 프로젝트 열기: Polylytics/dashing

공개 메소드들

메소드 설명
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

메소드 상세

DefaultFor() 공개 정적인 메소드

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

GetAncestorTypes() 공개 정적인 메소드

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
리턴 IEnumerable

GetCLRType() 공개 정적인 메소드

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

GetDbType() 공개 정적인 메소드

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

IsCollection() 공개 정적인 메소드

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

IsEntityType() 공개 정적인 메소드

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

IsImplementationOf() 공개 정적인 메소드

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

IsNullable() 공개 정적인 메소드

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

TypeTakesLength() 공개 정적인 메소드

public static TypeTakesLength ( this type ) : bool
type this
리턴 bool

TypeTakesPrecisionAndScale() 공개 정적인 메소드

public static TypeTakesPrecisionAndScale ( this type ) : bool
type this
리턴 bool