예제 #1
0
        /// <remarks>
        /// ALTHOUGH PUBLIC THIS METHOD IS NOT INTENDED TO BE CALLED OUTSIDE OF THIS CLASS
        /// </remarks>
        public void CreateGeneratedMaps()
        {
            IMappingService mappingService = new MappingService();

            #region Generated Type Mappings

            mappingService.CreateMap <AbuseType, AbuseTypeDC>();
            mappingService.CreateMap <AbuseTypeDC, AbuseType>();
            mappingService.CreateMap <AbuseType, AbuseTypeSearchMatchDC>();

            mappingService.CreateMap <ADRoleLookup, ADRoleLookupDC>();
            mappingService.CreateMap <ADRoleLookupDC, ADRoleLookup>();
            mappingService.CreateMap <ADRoleLookup, ADRoleLookupSearchMatchDC>();

            mappingService.CreateMap <Application, ApplicationDC>();
            mappingService.CreateMap <ApplicationDC, Application>();
            mappingService.CreateMap <Application, ApplicationSearchMatchDC>();

            mappingService.CreateMap <ApplicationAttribute, ApplicationAttributeDC>();
            mappingService.CreateMap <ApplicationAttributeDC, ApplicationAttribute>();
            mappingService.CreateMap <ApplicationAttribute, ApplicationAttributeSearchMatchDC>();

            mappingService.CreateMap <ApplicationOrganisationTypeGroup, ApplicationOrganisationTypeGroupDC>();
            mappingService.CreateMap <ApplicationOrganisationTypeGroupDC, ApplicationOrganisationTypeGroup>();
            mappingService.CreateMap <ApplicationOrganisationTypeGroup, ApplicationOrganisationTypeGroupSearchMatchDC>();

            mappingService.CreateMap <Attachment, AttachmentDC>();
            mappingService.CreateMap <AttachmentDC, Attachment>();
            mappingService.CreateMap <Attachment, AttachmentSearchMatchDC>();

            mappingService.CreateMap <AttachmentData, AttachmentDataDC>();
            mappingService.CreateMap <AttachmentDataDC, AttachmentData>();
            mappingService.CreateMap <AttachmentData, AttachmentDataSearchMatchDC>();

            mappingService.CreateMap <Audit, AuditDC>();
            mappingService.CreateMap <AuditDC, Audit>();
            mappingService.CreateMap <Audit, AuditSearchMatchDC>();

            mappingService.CreateMap <Content, ContentDC>();
            mappingService.CreateMap <ContentDC, Content>();
            mappingService.CreateMap <Content, ContentSearchMatchDC>();

            mappingService.CreateMap <ContingencyArrangement, ContingencyArrangementDC>();
            mappingService.CreateMap <ContingencyArrangementDC, ContingencyArrangement>();
            mappingService.CreateMap <ContingencyArrangement, ContingencyArrangementSearchMatchDC>();

            mappingService.CreateMap <ControlMeasure, ControlMeasureDC>();
            mappingService.CreateMap <ControlMeasureDC, ControlMeasure>();
            mappingService.CreateMap <ControlMeasure, ControlMeasureSearchMatchDC>();

            mappingService.CreateMap <Customer, CustomerDC>();
            mappingService.CreateMap <CustomerDC, Customer>();
            mappingService.CreateMap <Customer, CustomerSearchMatchDC>();

            mappingService.CreateMap <CustomerContingencyArrangement, CustomerContingencyArrangementDC>();
            mappingService.CreateMap <CustomerContingencyArrangementDC, CustomerContingencyArrangement>();
            mappingService.CreateMap <CustomerContingencyArrangement, CustomerContingencyArrangementSearchMatchDC>();

            mappingService.CreateMap <CustomerControlMeasure, CustomerControlMeasureDC>();
            mappingService.CreateMap <CustomerControlMeasureDC, CustomerControlMeasure>();
            mappingService.CreateMap <CustomerControlMeasure, CustomerControlMeasureSearchMatchDC>();

            mappingService.CreateMap <EventLeadingToIncident, EventLeadingToIncidentDC>();
            mappingService.CreateMap <EventLeadingToIncidentDC, EventLeadingToIncident>();
            mappingService.CreateMap <EventLeadingToIncident, EventLeadingToIncidentSearchMatchDC>();

            mappingService.CreateMap <Grade, GradeDC>();
            mappingService.CreateMap <GradeDC, Grade>();
            mappingService.CreateMap <Grade, GradeSearchMatchDC>();

            mappingService.CreateMap <Incident, IncidentDC>();
            mappingService.CreateMap <IncidentDC, Incident>();
            mappingService.CreateMap <Incident, IncidentSearchMatchDC>();

            mappingService.CreateMap <IncidentCategory, IncidentCategoryDC>();
            mappingService.CreateMap <IncidentCategoryDC, IncidentCategory>();
            mappingService.CreateMap <IncidentCategory, IncidentCategorySearchMatchDC>();

            mappingService.CreateMap <IncidentDetail, IncidentDetailDC>();
            mappingService.CreateMap <IncidentDetailDC, IncidentDetail>();
            mappingService.CreateMap <IncidentDetail, IncidentDetailSearchMatchDC>();

            mappingService.CreateMap <IncidentInterestedParty, IncidentInterestedPartyDC>();
            mappingService.CreateMap <IncidentInterestedPartyDC, IncidentInterestedParty>();
            mappingService.CreateMap <IncidentInterestedParty, IncidentInterestedPartySearchMatchDC>();

            mappingService.CreateMap <IncidentLink, IncidentLinkDC>();
            mappingService.CreateMap <IncidentLinkDC, IncidentLink>();
            mappingService.CreateMap <IncidentLink, IncidentLinkSearchMatchDC>();

            mappingService.CreateMap <IncidentLocation, IncidentLocationDC>();
            mappingService.CreateMap <IncidentLocationDC, IncidentLocation>();
            mappingService.CreateMap <IncidentLocation, IncidentLocationSearchMatchDC>();

            mappingService.CreateMap <IncidentSystemMarked, IncidentSystemMarkedDC>();
            mappingService.CreateMap <IncidentSystemMarkedDC, IncidentSystemMarked>();
            mappingService.CreateMap <IncidentSystemMarked, IncidentSystemMarkedSearchMatchDC>();

            mappingService.CreateMap <IncidentType, IncidentTypeDC>();
            mappingService.CreateMap <IncidentTypeDC, IncidentType>();
            mappingService.CreateMap <IncidentType, IncidentTypeSearchMatchDC>();

            mappingService.CreateMap <IncidentUpdateEvent, IncidentUpdateEventDC>();
            mappingService.CreateMap <IncidentUpdateEventDC, IncidentUpdateEvent>();
            mappingService.CreateMap <IncidentUpdateEvent, IncidentUpdateEventSearchMatchDC>();

            mappingService.CreateMap <InterestedParty, InterestedPartyDC>();
            mappingService.CreateMap <InterestedPartyDC, InterestedParty>();
            mappingService.CreateMap <InterestedParty, InterestedPartySearchMatchDC>();

            mappingService.CreateMap <IntroductoryInformation, IntroductoryInformationDC>();
            mappingService.CreateMap <IntroductoryInformationDC, IntroductoryInformation>();
            mappingService.CreateMap <IntroductoryInformation, IntroductoryInformationSearchMatchDC>();

            mappingService.CreateMap <JobRole, JobRoleDC>();
            mappingService.CreateMap <JobRoleDC, JobRole>();
            mappingService.CreateMap <JobRole, JobRoleSearchMatchDC>();

            mappingService.CreateMap <LinkedCustomer, LinkedCustomerDC>();
            mappingService.CreateMap <LinkedCustomerDC, LinkedCustomer>();
            mappingService.CreateMap <LinkedCustomer, LinkedCustomerSearchMatchDC>();

            mappingService.CreateMap <Narrative, NarrativeDC>();
            mappingService.CreateMap <NarrativeDC, Narrative>();
            mappingService.CreateMap <Narrative, NarrativeSearchMatchDC>();

            mappingService.CreateMap <Organisation, OrganisationDC>();
            mappingService.CreateMap <OrganisationDC, Organisation>();
            mappingService.CreateMap <Organisation, OrganisationSearchMatchDC>();

            mappingService.CreateMap <OrganisationHierarchy, OrganisationHierarchyDC>();
            mappingService.CreateMap <OrganisationHierarchyDC, OrganisationHierarchy>();
            mappingService.CreateMap <OrganisationHierarchy, OrganisationHierarchySearchMatchDC>();

            mappingService.CreateMap <OrganisationType, OrganisationTypeDC>();
            mappingService.CreateMap <OrganisationTypeDC, OrganisationType>();
            mappingService.CreateMap <OrganisationType, OrganisationTypeSearchMatchDC>();

            mappingService.CreateMap <OrganisationTypeGroup, OrganisationTypeGroupDC>();
            mappingService.CreateMap <OrganisationTypeGroupDC, OrganisationTypeGroup>();
            mappingService.CreateMap <OrganisationTypeGroup, OrganisationTypeGroupSearchMatchDC>();

            mappingService.CreateMap <Referrer, ReferrerDC>();
            mappingService.CreateMap <ReferrerDC, Referrer>();
            mappingService.CreateMap <Referrer, ReferrerSearchMatchDC>();

            mappingService.CreateMap <RelationshipToCustomer, RelationshipToCustomerDC>();
            mappingService.CreateMap <RelationshipToCustomerDC, RelationshipToCustomer>();
            mappingService.CreateMap <RelationshipToCustomer, RelationshipToCustomerSearchMatchDC>();

            mappingService.CreateMap <ReportCategory, ReportCategoryDC>();
            mappingService.CreateMap <ReportCategoryDC, ReportCategory>();
            mappingService.CreateMap <ReportCategory, ReportCategorySearchMatchDC>();

            mappingService.CreateMap <Role, RoleDC>();
            mappingService.CreateMap <RoleDC, Role>();
            mappingService.CreateMap <Role, RoleSearchMatchDC>();

            mappingService.CreateMap <Site, SiteDC>();
            mappingService.CreateMap <SiteDC, Site>();
            mappingService.CreateMap <Site, SiteSearchMatchDC>();

            mappingService.CreateMap <SiteStaff, SiteStaffDC>();
            mappingService.CreateMap <SiteStaffDC, SiteStaff>();
            mappingService.CreateMap <SiteStaff, SiteStaffSearchMatchDC>();

            mappingService.CreateMap <Staff, StaffDC>();
            mappingService.CreateMap <StaffDC, Staff>();
            mappingService.CreateMap <Staff, StaffSearchMatchDC>();

            mappingService.CreateMap <StaffAttributes, StaffAttributesDC>();
            mappingService.CreateMap <StaffAttributesDC, StaffAttributes>();
            mappingService.CreateMap <StaffAttributes, StaffAttributesSearchMatchDC>();

            mappingService.CreateMap <StaffOrganisation, StaffOrganisationDC>();
            mappingService.CreateMap <StaffOrganisationDC, StaffOrganisation>();
            mappingService.CreateMap <StaffOrganisation, StaffOrganisationSearchMatchDC>();

            mappingService.CreateMap <StandardReport, StandardReportDC>();
            mappingService.CreateMap <StandardReportDC, StandardReport>();
            mappingService.CreateMap <StandardReport, StandardReportSearchMatchDC>();

            mappingService.CreateMap <SystemMarked, SystemMarkedDC>();
            mappingService.CreateMap <SystemMarkedDC, SystemMarked>();
            mappingService.CreateMap <SystemMarked, SystemMarkedSearchMatchDC>();

            mappingService.CreateMap <SystemParameter, SystemParameterDC>();
            mappingService.CreateMap <SystemParameterDC, SystemParameter>();
            mappingService.CreateMap <SystemParameter, SystemParameterSearchMatchDC>();

            #endregion Generated Type Mappings
        }