Example #1
0
 public void FromData(IZDataBase data)
 {
     CustomerDTO dto = (new List<Customer> { (Customer)data })
         .Select(GetDTOSelector())
         .FirstOrDefault();
     LibraryHelper.Clone(dto, this);
 }
Example #2
0
 public virtual void FromData(IZDataBase dataModel)
 {
     if (dataModel != null)
     {
         LibraryHelper.Clone <TEntityView>(DIHelper.Mapper.Map <TEntityView>(dataModel as TEntity), this);
     }
 }
Example #3
0
        public void FromData(IZDataBase data)
        {
            GenreDTO dto = (new List <Genre> {
                (Genre)data
            })
                           .Select(GetDTOSelector())
                           .FirstOrDefault();

            LibraryHelper.Clone(dto, this);
        }
        public void FromData(IZDataBase data)
        {
            PlaylistTrackDTO dto = (new List <PlaylistTrack> {
                (PlaylistTrack)data
            })
                                   .Select(GetDTOSelector())
                                   .FirstOrDefault();

            LibraryHelper.Clone(dto, this);
        }
        public AlbumViewModel(IZDataBase data)
        {
            AlbumDTO       dto  = new AlbumDTO(data);
            AlbumViewModel view = (new List <AlbumDTO> {
                (AlbumDTO)dto
            })
                                  .Select(GetViewSelector())
                                  .SingleOrDefault();

            LibraryHelper.Clone(view, this);
        }
Example #6
0
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         EmployeeTerritoryDTO dto = (new List <EmployeeTerritory> {
             (EmployeeTerritory)data
         })
                                    .Select(GetDTOSelector())
                                    .SingleOrDefault();
         LibraryHelper.Clone(dto, this);
     }
 }
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         OrderDetailDTO dto = (new List <OrderDetail> {
             (OrderDetail)data
         })
                              .Select(GetDTOSelector())
                              .SingleOrDefault();
         LibraryHelper.Clone(dto, this);
     }
 }
Example #8
0
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         InvoiceLineDTO dto = (new List <InvoiceLine> {
             (InvoiceLine)data
         })
                              .Select(GetDTOSelector())
                              .SingleOrDefault();
         LibraryHelper.Clone(dto, this);
     }
 }
Example #9
0
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         AuditTrailConfigurationDTO dto = (new List <AuditTrailConfiguration> {
             (AuditTrailConfiguration)data
         })
                                          .Select(GetDTOSelector())
                                          .SingleOrDefault();
         LibraryHelper.Clone(dto, this);
     }
 }
Example #10
0
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         CustomerDemographicDTO dto = (new List <CustomerDemographic> {
             (CustomerDemographic)data
         })
                                      .Select(GetDTOSelector())
                                      .SingleOrDefault();
         LibraryHelper.Clone(dto, this);
     }
 }
Example #11
0
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         AlbumDTO dto = (new List <Album> {
             (Album)data
         })
                        .Select(GetDTOSelector())
                        .SingleOrDefault();
         LibraryHelper.Clone(dto, this);
     }
 }
Example #12
0
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         PlaylistTrackDTO dto = (new List <PlaylistTrack> {
             (PlaylistTrack)data
         })
                                .Select(GetDTOSelector())
                                .SingleOrDefault();
         LibraryHelper.Clone(dto, this);
     }
 }
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         PlaylistTrackDTO       dto  = new PlaylistTrackDTO(data);
         PlaylistTrackViewModel view = (new List <PlaylistTrackDTO> {
             (PlaylistTrackDTO)dto
         })
                                       .Select(GetViewSelector())
                                       .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         EmployeeTerritoryDTO       dto  = new EmployeeTerritoryDTO(data);
         EmployeeTerritoryViewModel view = (new List <EmployeeTerritoryDTO> {
             (EmployeeTerritoryDTO)dto
         })
                                           .Select(GetViewSelector())
                                           .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
Example #15
0
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         AuditTrailLogDTO       dto  = new AuditTrailLogDTO(data);
         AuditTrailLogViewModel view = (new List <AuditTrailLogDTO> {
             (AuditTrailLogDTO)dto
         })
                                       .Select(GetViewSelector())
                                       .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
Example #16
0
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         UserDTO       dto  = new UserDTO(data);
         UserViewModel view = (new List <UserDTO> {
             (UserDTO)dto
         })
                              .Select(GetViewSelector())
                              .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         CustomerDemographicDTO       dto  = new CustomerDemographicDTO(data);
         CustomerDemographicViewModel view = (new List <CustomerDemographicDTO> {
             (CustomerDemographicDTO)dto
         })
                                             .Select(GetViewSelector())
                                             .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
Example #18
0
        public override void FromData(IZDataBase data)
        {
            if (data != null)
            {
                Role    role = (Role)data;
                RoleDTO dto  = (new List <Role> {
                    role
                })
                               .Select(GetDTOSelector())
                               .SingleOrDefault();
                dto.LookupText = role.LookupText;

                LibraryHelper.Clone(dto, this);
            }
        }
Example #19
0
        public override void FromData(IZDataBase data)
        {
            if (data != null)
            {
                AuditTrailLog    auditTrailLog = (AuditTrailLog)data;
                AuditTrailLogDTO dto           = (new List <AuditTrailLog> {
                    auditTrailLog
                })
                                                 .Select(GetDTOSelector())
                                                 .SingleOrDefault();
                dto.LookupText = auditTrailLog.LookupText;

                LibraryHelper.Clone(dto, this);
            }
        }
Example #20
0
        public override void FromData(IZDataBase data)
        {
            if (data != null)
            {
                Activity    activity = (Activity)data;
                ActivityDTO dto      = (new List <Activity> {
                    activity
                })
                                       .Select(GetDTOSelector())
                                       .SingleOrDefault();
                dto.LookupText = activity.LookupText;

                LibraryHelper.Clone(dto, this);
            }
        }
Example #21
0
        public override void FromData(IZDataBase data)
        {
            if (data != null)
            {
                User    user = (User)data;
                UserDTO dto  = (new List <User> {
                    user
                })
                               .Select(GetDTOSelector())
                               .SingleOrDefault();
                dto.LookupText = user.LookupText;

                LibraryHelper.Clone(dto, this);
            }
        }
Example #22
0
        public override void FromData(IZDataBase data)
        {
            if (data != null)
            {
                UserClaim    userClaim = (UserClaim)data;
                UserClaimDTO dto       = (new List <UserClaim> {
                    userClaim
                })
                                         .Select(GetDTOSelector())
                                         .SingleOrDefault();
                dto.UserLookupText = userClaim.User == null ? null : userClaim.User.LookupText;
                dto.LookupText     = userClaim.LookupText;

                LibraryHelper.Clone(dto, this);
            }
        }
Example #23
0
 public CustomerDocumentDTO(IZDataBase data)
 {
     FromData(data);
 }
Example #24
0
 public UserViewModel(IZDataBase data)
 {
     FromData(data);
 }
Example #25
0
 public ActivityRoleDTO(IZDataBase dataModel)
 {
     FromData(dataModel);
 }
Example #26
0
 public AlbumDTO(IZDataBase data)
 {
     FromData(data);
 }
Example #27
0
 public UserDTO(IZDataBase data)
 {
     FromData(data);
 }
 public PlaylistTrackViewModel(IZDataBase data)
 {
     FromData(data);
 }
Example #29
0
 public TrackDTO(IZDataBase data)
 {
     FromData(data);
 }
Example #30
0
 public ShipperDTO(IZDataBase dataModel)
 {
     FromData(dataModel);
 }