C# 클래스 LX.EasyDb.Mapping

Provides classes and method for ORM.
상속: SqlMapper.ITypeMapRegistry
파일 보기 프로젝트 열기: longshine/EasyDb.NET

공개 메소드들

메소드 설명
FindTable ( String entity ) : Table

Finds a table mapped with the specified entity.

FindTable ( Type type ) : Table

Finds a table mapped with the specified type.

Phantom ( Type realType, Type phantomType ) : void

Registers mapping of a real type with metadata defined in another phantom type. This could be useful when the model is public, however the mapping details need to be unknown to others.

SetTable ( String entity, Table table ) : void

Sets a table mapped with the specified entity.

SetTable ( Type type, Table table ) : void

Sets a table mapped with the specified type.

비공개 메소드들

메소드 설명
GetTypeName ( Type type ) : String
SqlMapper ( Type type ) : SqlMapper.ITypeMap
SqlMapper ( Type type, Dapper.SqlMapper map ) : void

메소드 상세

FindTable() 공개 메소드

Finds a table mapped with the specified entity.
public FindTable ( String entity ) : Table
entity String the name of the entity to map
리턴 Table

FindTable() 공개 메소드

Finds a table mapped with the specified type.
public FindTable ( Type type ) : Table
type System.Type the to map
리턴 Table

Phantom() 공개 메소드

Registers mapping of a real type with metadata defined in another phantom type. This could be useful when the model is public, however the mapping details need to be unknown to others.
public Phantom ( Type realType, Type phantomType ) : void
realType System.Type the real type to map
phantomType System.Type the type which contains mapping definition
리턴 void

SetTable() 공개 메소드

Sets a table mapped with the specified entity.
public SetTable ( String entity, Table table ) : void
entity String the entity to map
table Table the mapping rules impementation, or null to remove custom map
리턴 void

SetTable() 공개 메소드

Sets a table mapped with the specified type.
public SetTable ( Type type, Table table ) : void
type System.Type the to map
table Table the mapping rules impementation, or null to remove custom map
리턴 void