예제 #1
0
 public static AlbumPO ToAlbumPO(this Album entity)
 {
     AlbumPO result = new AlbumPO();
     result.Id = entity.Id;
     result.Name = entity.Name;
     result.CreatedBy = entity.CreatedBy;
     result.CreatedOn = entity.CreatedOn;
     result.PhotoCount = entity.PhotoCount;
     if (entity.CoverURIs != null)
     {
         result.CoverURIs = new string[entity.CoverURIs.Length];
         entity.CoverURIs.CopyTo(result.CoverURIs, 0);
     }
     result.Description = entity.Description;
     return result;
 }
예제 #2
0
        public static Album ToAlbum(this AlbumPO po)
        {
            Album result = new Album();

            result.Id         = po.Id;
            result.Name       = po.Name;
            result.CreatedBy  = po.CreatedBy;
            result.CreatedOn  = po.CreatedOn;
            result.PhotoCount = po.PhotoCount;
            if (po.CoverURIs != null)
            {
                result.CoverURIs = new string[po.CoverURIs.Length];
                po.CoverURIs.CopyTo(result.CoverURIs, 0);
            }
            result.Description = po.Description;
            return(result);
        }
예제 #3
0
        public static AlbumPO ToAlbumPO(this Album entity)
        {
            AlbumPO result = new AlbumPO();

            result.Id         = entity.Id;
            result.Name       = entity.Name;
            result.CreatedBy  = entity.CreatedBy;
            result.CreatedOn  = entity.CreatedOn;
            result.PhotoCount = entity.PhotoCount;
            if (entity.CoverURIs != null)
            {
                result.CoverURIs = new string[entity.CoverURIs.Length];
                entity.CoverURIs.CopyTo(result.CoverURIs, 0);
            }
            result.Description = entity.Description;
            return(result);
        }