public void FromData(IZDataBase data) { CustomerDTO dto = (new List<Customer> { (Customer)data }) .Select(GetDTOSelector()) .FirstOrDefault(); LibraryHelper.Clone(dto, this); }
public virtual void FromData(IZDataBase dataModel) { if (dataModel != null) { LibraryHelper.Clone <TEntityView>(DIHelper.Mapper.Map <TEntityView>(dataModel as TEntity), this); } }
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); }
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); } }
public override void FromData(IZDataBase data) { if (data != null) { InvoiceLineDTO dto = (new List <InvoiceLine> { (InvoiceLine)data }) .Select(GetDTOSelector()) .SingleOrDefault(); LibraryHelper.Clone(dto, this); } }
public override void FromData(IZDataBase data) { if (data != null) { AuditTrailConfigurationDTO dto = (new List <AuditTrailConfiguration> { (AuditTrailConfiguration)data }) .Select(GetDTOSelector()) .SingleOrDefault(); LibraryHelper.Clone(dto, this); } }
public override void FromData(IZDataBase data) { if (data != null) { CustomerDemographicDTO dto = (new List <CustomerDemographic> { (CustomerDemographic)data }) .Select(GetDTOSelector()) .SingleOrDefault(); LibraryHelper.Clone(dto, this); } }
public override void FromData(IZDataBase data) { if (data != null) { AlbumDTO dto = (new List <Album> { (Album)data }) .Select(GetDTOSelector()) .SingleOrDefault(); LibraryHelper.Clone(dto, this); } }
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); } }
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); } }
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) { Role role = (Role)data; RoleDTO dto = (new List <Role> { role }) .Select(GetDTOSelector()) .SingleOrDefault(); dto.LookupText = role.LookupText; LibraryHelper.Clone(dto, this); } }
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); } }
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); } }
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); } }
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); } }
public CustomerDocumentDTO(IZDataBase data) { FromData(data); }
public UserViewModel(IZDataBase data) { FromData(data); }
public ActivityRoleDTO(IZDataBase dataModel) { FromData(dataModel); }
public AlbumDTO(IZDataBase data) { FromData(data); }
public UserDTO(IZDataBase data) { FromData(data); }
public PlaylistTrackViewModel(IZDataBase data) { FromData(data); }
public TrackDTO(IZDataBase data) { FromData(data); }
public ShipperDTO(IZDataBase dataModel) { FromData(dataModel); }