C# 클래스 Roadkill.Core.Database.LightSpeed.FromEntity

Maps Lightspeed entity classes to the Roadkill domain objects.
(AutoMapper was tried for this, but had problems with the Mindscape.LightSpeed.Entity class)
파일 보기 프로젝트 열기: LocalGovDigital/pipeline 1 사용 예제들

공개 메소드들

메소드 설명
ToOrg ( OrgEntity entity ) : Organisation
ToOrgList ( List entities ) : IEnumerable
ToPage ( PageEntity entity ) : Page
ToPageContent ( PageContentEntity entity ) : PageContent
ToPageContentList ( IEnumerable entities ) : IEnumerable
ToPageList ( IEnumerable entities ) : IEnumerable
ToRel ( RelEntity entity ) : Relationship
ToRelList ( List entities ) : List
ToRelType ( RelTypeEntity entity ) : RelationshipType
ToRelTypeList ( List entities ) : List
ToUser ( UserEntity entity ) : User

Intentionally doesn't populate the User.Password property (as this is only ever stored).

ToUserList ( List entities ) : IEnumerable

메소드 상세

ToOrg() 공개 정적인 메소드

public static ToOrg ( OrgEntity entity ) : Organisation
entity OrgEntity
리턴 Organisation

ToOrgList() 공개 정적인 메소드

public static ToOrgList ( List entities ) : IEnumerable
entities List
리턴 IEnumerable

ToPage() 공개 정적인 메소드

public static ToPage ( PageEntity entity ) : Page
entity PageEntity
리턴 Page

ToPageContent() 공개 정적인 메소드

public static ToPageContent ( PageContentEntity entity ) : PageContent
entity PageContentEntity
리턴 PageContent

ToPageContentList() 공개 정적인 메소드

public static ToPageContentList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
리턴 IEnumerable

ToPageList() 공개 정적인 메소드

public static ToPageList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
리턴 IEnumerable

ToRel() 공개 정적인 메소드

public static ToRel ( RelEntity entity ) : Relationship
entity RelEntity
리턴 Relationship

ToRelList() 공개 정적인 메소드

public static ToRelList ( List entities ) : List
entities List
리턴 List

ToRelType() 공개 정적인 메소드

public static ToRelType ( RelTypeEntity entity ) : RelationshipType
entity RelTypeEntity
리턴 RelationshipType

ToRelTypeList() 공개 정적인 메소드

public static ToRelTypeList ( List entities ) : List
entities List
리턴 List

ToUser() 공개 정적인 메소드

Intentionally doesn't populate the User.Password property (as this is only ever stored).
public static ToUser ( UserEntity entity ) : User
entity UserEntity
리턴 User

ToUserList() 공개 정적인 메소드

public static ToUserList ( List entities ) : IEnumerable
entities List
리턴 IEnumerable