コード例 #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);
        }
コード例 #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);
        }
コード例 #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;
 }
コード例 #4
0
 public BackupData ConvertFromDTO(DTO.BackupData source)
 {
     return(source.FromDTO());
 }