Example #1
0
        public static BackupData FromDTO(this DTO.BackupData source)
        {
            var h = new BackupData();

            h.DatasetGroup = source.DatasetGroup;
            h.DatasetName  = source.DatasetName;
            if (source.BackupItem != null)
            {
                h.BackupItem = source.BackupItem.Select(wld => wld.FromDTO()).ToList();
            }
            return(h);
        }
Example #2
0
        public static DTO.BackupData ToDTO(this BackupData source)
        {
            var h = new DTO.BackupData();

            h.DatasetGroup = source.DatasetGroup;
            h.DatasetName  = source.DatasetName;
            if (source.BackupItem != null)
            {
                h.BackupItem = source.BackupItem.ConvertAll(wld => wld.ToDTO()).ToArray();
            }
            return(h);
        }
Example #3
0
 public static DTO.BackupData ToDTO(this BackupData source)
 {
     var h = new DTO.BackupData();
     h.DatasetGroup = source.DatasetGroup;
     h.DatasetName = source.DatasetName;
     if (source.BackupItem != null)
         h.BackupItem = source.BackupItem.ConvertAll(wld => wld.ToDTO()).ToArray();
     return h;
 }
Example #4
0
 public BackupData ConvertFromDTO(DTO.BackupData source)
 {
     return(source.FromDTO());
 }