ToRelList() public static method

public static ToRelList ( List entities ) : List
entities List
return List
Beispiel #1
0
        public IEnumerable <Relationship> GetRelByPage(int pageid)
        {
            List <RelEntity> entities = Rels.Where(p => p.pageId == pageid).ToList();

            return(FromEntity.ToRelList(entities));
        }
Beispiel #2
0
        public IEnumerable <Relationship> FindAllRels()
        {
            List <RelEntity> entities = Rels.ToList();

            return(FromEntity.ToRelList(entities));
        }
Beispiel #3
0
        public IEnumerable <Relationship> FindRelsCreatedBy(string username)
        {
            List <RelEntity> entities = Rels.Where(p => p.username == username).ToList();

            return(FromEntity.ToRelList(entities));
        }
Beispiel #4
0
        public List <Relationship> FindPageRelationships(int pageID)
        {
            List <RelEntity> entities = Rels.Where(p => p.pageId == pageID).ToList();

            return(FromEntity.ToRelList(entities));
        }