C# 클래스 MicroLite.TypeConverters.TypeConverter

A class which allows access to ITypeConverters.
파일 보기 프로젝트 열기: TrevorPilley/MicroLite 1 사용 예제들

공개 메소드들

메소드 설명
For ( Type type ) : ITypeConverter

Gets the ITypeConverter for the specified type.

If For returns null, the TypeConverter.Default can be used.

IsNotEntityAndConvertible ( Type type ) : bool

Determines whether the type is not an entity type and is a convertible type.

RegisterTypeMapping ( Type type, DbType dbType ) : void

Registers the type mapping between a Type and DbType.

ResolveActualType ( Type type ) : Type

Resolves the actual type.

ResolveDbType ( Type type ) : DbType

Resolves the DbType mapped to the Type.

메소드 상세

For() 공개 정적인 메소드

Gets the ITypeConverter for the specified type.
If For returns null, the TypeConverter.Default can be used.
public static For ( Type type ) : ITypeConverter
type System.Type The type to get the converter for.
리턴 ITypeConverter

IsNotEntityAndConvertible() 공개 정적인 메소드

Determines whether the type is not an entity type and is a convertible type.
Thrown if type is null.
public static IsNotEntityAndConvertible ( Type type ) : bool
type System.Type The type to test.
리턴 bool

RegisterTypeMapping() 공개 정적인 메소드

Registers the type mapping between a Type and DbType.
public static RegisterTypeMapping ( Type type, DbType dbType ) : void
type System.Type The Type to be mapped.
dbType DbType The DbType to be mapped to.
리턴 void

ResolveActualType() 공개 정적인 메소드

Resolves the actual type.
Thrown if type is null.
public static ResolveActualType ( Type type ) : Type
type System.Type The type to resolve.
리턴 System.Type

ResolveDbType() 공개 정적인 메소드

Resolves the DbType mapped to the Type.
Thrown if the Type is not mapped to a DbType.
public static ResolveDbType ( Type type ) : DbType
type System.Type The Type to resolve the DbType from.
리턴 DbType