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)
Afficher le fichier Open project: LocalGovDigital/pipeline Class Usage Examples

Méthodes publiques

Méthode 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 méthode

public static ToOrg ( OrgEntity entity ) : Organisation
entity OrgEntity
Résultat Organisation

ToOrgList() public static méthode

public static ToOrgList ( List entities ) : IEnumerable
entities List
Résultat IEnumerable

ToPage() public static méthode

public static ToPage ( PageEntity entity ) : Page
entity PageEntity
Résultat Page

ToPageContent() public static méthode

public static ToPageContent ( PageContentEntity entity ) : PageContent
entity PageContentEntity
Résultat PageContent

ToPageContentList() public static méthode

public static ToPageContentList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
Résultat IEnumerable

ToPageList() public static méthode

public static ToPageList ( IEnumerable entities ) : IEnumerable
entities IEnumerable
Résultat IEnumerable

ToRel() public static méthode

public static ToRel ( RelEntity entity ) : Relationship
entity RelEntity
Résultat Relationship

ToRelList() public static méthode

public static ToRelList ( List entities ) : List
entities List
Résultat List

ToRelType() public static méthode

public static ToRelType ( RelTypeEntity entity ) : RelationshipType
entity RelTypeEntity
Résultat RelationshipType

ToRelTypeList() public static méthode

public static ToRelTypeList ( List entities ) : List
entities List
Résultat List

ToUser() public static méthode

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

ToUserList() public static méthode

public static ToUserList ( List entities ) : IEnumerable
entities List
Résultat IEnumerable