Пример #1
0
        /// <summary>
        /// Configure manual mapping
        /// </summary>
        /// <param name="manager"></param>
        private static void ConfigureManualMapping(MappingManager manager)
        {
            //
            // These manual mapping function
            // For table does not have primary key
            // So we need to map through SQL Script
            manager.AddManualMapping("ageing_debtors_v", new ManualMapping_ageing_debtors_v());
            manager.AddManualMapping("atura_identity", new ManualMapping_atura_identity());
            manager.AddManualMapping("Cash_Receipt_Lock", new ManualMapping_Cash_Receipt_Lock());
            manager.AddManualMapping("expiry_register_particulars_t", new ManualMapping_expiry_register_particulars_t());
            manager.AddManualMapping("glsl_Transactions", new ManualMapping_glsl_Transactions());
            manager.AddManualMapping("IBA", new ManualMapping_IBA());
            manager.AddManualMapping("period_renewals_particulars_t", new ManualMapping_period_renewals_particulars_t());
            manager.AddManualMapping("renewal_retention_report", new ManualMapping_renewal_retention_report());
            manager.AddManualMapping("statements", new ManualMapping_statements());
            manager.AddManualMapping("tmpPortfolioAnalysis", new ManualMapping_tmpPortfolioAnalysis());
            manager.AddManualMapping("turnover", new ManualMapping_turnover());
            manager.AddManualMapping("view_DofiReport_Table1", new ManualMapping_view_DofiReport_Table1());
            manager.AddManualMapping("view_DofiReport_Table2", new ManualMapping_view_DofiReport_Table2());
            manager.AddManualMapping("view_earnings", new ManualMapping_view_earnings());
            manager.AddManualMapping("view_earnings2", new ManualMapping_view_earnings2());
            manager.AddManualMapping("view_inspay", new ManualMapping_view_inspay());
            manager.AddManualMapping("vims_EarningsDiff", new ManualMapping_vims_EarningsDiff());
            manager.AddManualMapping("vims_unallocated_csh_credits", new ManualMapping_vims_unallocated_csh_credits());
            manager.AddManualMapping("PaidInvoices", new ManualMapping_PaidInvoices());
            manager.AddManualMapping("policies_converted", new ManualMapping_policies_converted());

            ////
            //// Add manual mapping
            //// To map table has circle references
            //// Or table has difficult references
            manager.AddManualMapping("branches", new ManualMapping_branches());
            manager.AddManualMapping("general_insurance", new ManualMapping_general_insurance());
            manager.AddManualMapping("workbooks", new ManualMapping_workbooks());


            //
            // Add manual mapping
            // To override mapping function with table doesn't need anymore
            // So just create EMPTY mapping function to improve performance
            manager.AddManualMapping("Workbook_SOA", new ManualMapping_Workbook_SOA());
            manager.AddManualMapping("BackgroundJobs", new ManualMapping_BackgroundJobs());
            manager.AddManualMapping("SteadfastReport", new ManualMapping_SteadfastReport());


            //
            // Add manual mapping
            // To map table has Image field need convert to blob pointer
            manager.AddManualMapping("claim_sub_tasks", new ManualMapping_claim_sub_tasks());
            manager.AddManualMapping("journal_sub_tasks", new ManualMapping_journal_sub_tasks());
            manager.AddManualMapping("tasks_sub_tasks", new ManualMapping_tasks_sub_tasks());
            manager.AddManualMapping("general_general_insurance_workbooks", new ManualMapping_general_insurance_workbooks());
            manager.AddManualMapping("policy_transaction_documents", new ManualMapping_policy_transaction_documents());
            manager.AddManualMapping("claim_documents", new ManualMapping_claim_documents());
            manager.AddManualMapping("gen_ins_documents", new ManualMapping_gen_ins_documents());
            manager.AddManualMapping("task_documents", new ManualMapping_task_documents());
            manager.AddManualMapping("confirmation_of_cover", new ManualMapping_confirmation_of_cover());
            manager.AddManualMapping("notes", new ManualMapping_notes());
            manager.AddManualMapping("DocumentRepository", new ManualMapping_DocumentRepository());
            manager.AddManualMapping("EmailTemplates", new ManualMapping_EmailTemplates());
            manager.AddManualMapping("client_insurance_portfolio", new ManualMapping_client_insurance_portfolio());
            manager.AddManualMapping("policies", new ManualMapping_policies());
            manager.AddManualMapping("soa_clauses", new ManualMapping_soa_clauses());
        }