C# Class 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)
Mostra file Open project: LocalGovDigital/pipeline Class Usage Examples

Public Methods

Method Description
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

Method Details

ToOrg() public static method

public static ToOrg ( OrgEntity entity ) : Organisation
entity OrgEntity
return Organisation

ToOrgList() public static method

public static ToOrgList ( List entities ) : IEnumerable
entities List
return IEnumerable

ToPage() public static method

public static ToPage ( PageEntity entity ) : Page
entity PageEntity
return Page

ToPageContent() public static method

public static ToPageContent ( PageContentEntity entity ) : PageContent
entity PageContentEntity
return PageContent

ToPageContentList() public static method

public static ToPageContentList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
return IEnumerable

ToPageList() public static method

public static ToPageList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
return IEnumerable

ToRel() public static method

public static ToRel ( RelEntity entity ) : Relationship
entity RelEntity
return Relationship

ToRelList() public static method

public static ToRelList ( List entities ) : List
entities List
return List

ToRelType() public static method

public static ToRelType ( RelTypeEntity entity ) : RelationshipType
entity RelTypeEntity
return RelationshipType

ToRelTypeList() public static method

public static ToRelTypeList ( List entities ) : List
entities List
return List

ToUser() public static method

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

ToUserList() public static method

public static ToUserList ( List entities ) : IEnumerable
entities List
return IEnumerable