public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         AuditTrailLogDTO dto = (new List <AuditTrailLog> {
             (AuditTrailLog)data
         })
                                .Select(GetDTOSelector())
                                .SingleOrDefault();
         LibraryHelper.Clone(dto, this);
     }
 }
Exemple #2
0
 public override void FromData(IZDataBase data)
 {
     if (data != null)
     {
         RoleDTO dto = (new List <Role> {
             (Role)data
         })
                       .Select(GetDTOSelector())
                       .SingleOrDefault();
         LibraryHelper.Clone(dto, this);
     }
 }
 public override void FromDTO(IZDTOBase <AuditTrailLogDTO, AuditTrailLog> dto)
 {
     if (dto != null)
     {
         AuditTrailLogViewModel view = (new List <AuditTrailLogDTO> {
             (AuditTrailLogDTO)dto
         })
                                       .Select(GetViewSelector())
                                       .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
 public override void FromDTO(IZDTOBase <CategoryDTO, Category> dto)
 {
     if (dto != null)
     {
         CategoryViewModel view = (new List <CategoryDTO> {
             (CategoryDTO)dto
         })
                                  .Select(GetViewSelector())
                                  .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
 public override void FromDTO(IZDTOBase <GenreDTO, Genre> dto)
 {
     if (dto != null)
     {
         GenreViewModel view = (new List <GenreDTO> {
             (GenreDTO)dto
         })
                               .Select(GetViewSelector())
                               .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
Exemple #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 FromDTO(IZDTOBase <ActivityDTO, EasyLOB.Security.Data.Activity> dto) // !!! Namespace
 {
     if (dto != null)
     {
         ActivityViewModel view = (new List <ActivityDTO> {
             (ActivityDTO)dto
         })
                                  .Select(GetViewSelector())
                                  .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
Exemple #8
0
 public override void FromDTO(IZDTOBase <UserClaimDTO, UserClaim> dto)
 {
     if (dto != null)
     {
         UserClaimViewModel view = (new List <UserClaimDTO> {
             (UserClaimDTO)dto
         })
                                   .Select(GetViewSelector())
                                   .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
 public override void FromDTO(IZDTOBase <CustomerDocumentDTO, CustomerDocument> dto)
 {
     if (dto != null)
     {
         CustomerDocumentViewModel view = (new List <CustomerDocumentDTO> {
             (CustomerDocumentDTO)dto
         })
                                          .Select(GetViewSelector())
                                          .SingleOrDefault();
         LibraryHelper.Clone(view, this);
     }
 }
Exemple #10
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);
     }
 }
 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);
     }
 }
 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);
     }
 }
Exemple #14
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);
     }
 }
Exemple #15
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);
            }
        }
Exemple #16
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);
            }
        }
Exemple #17
0
        public override void FromData(IZDataBase data)
        {
            if (data != null)
            {
                AuditTrailConfiguration    auditTrailConfiguration = (AuditTrailConfiguration)data;
                AuditTrailConfigurationDTO dto = (new List <AuditTrailConfiguration> {
                    auditTrailConfiguration
                })
                                                 .Select(GetDTOSelector())
                                                 .SingleOrDefault();
                dto.LookupText = auditTrailConfiguration.LookupText;

                LibraryHelper.Clone(dto, this);
            }
        }
Exemple #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);
            }
        }
Exemple #19
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);
            }
        }