//Xem bang này có bảng lịch sử clone từ bảng này ra hay không?
        public static string GetEntityNameHist(string entityName)
        {
            if (entityName == ApprovalAccount.EntityName())
            {
                return(ApprovalAccountHist.EntityName());
            }
            if (entityName == ApprovalDealing.EntityName())
            {
                return(ApprovalDealingHist.EntityName());
            }
            if (entityName == ApprovalMember.EntityName())
            {
                return(ApprovalMemberHist.EntityName());
            }
            if (entityName == ApprovalOrder.EntityName())
            {
                return(ApprovalOrderHist.EntityName());
            }
            if (entityName == ApprovalPreRisk.EntityName())
            {
                return(ApprovalPreRiskHist.EntityName());
            }
            if (entityName == ApprovalSystem.EntityName())
            {
                return(ApprovalSystemHist.EntityName());
            }

            if (entityName == AccountTransaction.EntityName())
            {
                return(AccountTransactionHist.EntityName());
            }
            if (entityName == BrokerOrder.EntityName())
            {
                return(BrokerOrderHist.EntityName());
            }
            if (entityName == ExecutionReport.EntityName())
            {
                return(ExecutionReportHist.EntityName());
            }

            if (entityName == OpenPositionDetail.EntityName())
            {
                return(OpenPositionDetailHist.EntityName());
            }
            if (entityName == OpenPosition.EntityName())
            {
                return(OpenPositionHist.EntityName());
            }
            if (entityName == OrderTransaction.EntityName())
            {
                return(OrderTransactionHist.EntityName());
            }
            if (entityName == SpecAccounting.EntityName())
            {
                return(SpecAccountingHist.EntityName());
            }
            if (entityName == SymbolSettlementPrice.EntityName())
            {
                return(SymbolSettlementPriceDaily.EntityName());
            }
            if (entityName == TradingDeal.EntityName())
            {
                return(TradingDealHist.EntityName());
            }

            return(null);
        }
        //Xem entity này có phải entity ở db lịch sử hay không?
        public static bool IsHistory(string entityName)
        {
            #region Daily
            if (entityName.Equals(AccountDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(AccountInfoDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(BaseSymbolDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ForexRateDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(MemberLimitDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(OpenPositionDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(OpenPositionDetailDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(OrderTransactionDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(SymbolSettlementPriceDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ForexRateInternalDaily.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ImLmeDaily.EntityName()))
            {
                return(true);
            }

            #endregion

            #region Hist
            if (entityName.Equals(AlertEmailHis.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(AlertSmsHis.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(LinkedTransactionHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(OpenPositionDetailHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(OpenPositionHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(OrderTransactionHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(TradingDealHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(AccountTransactionHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(SpecAccountingHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ExecutionReportHist.EntityName()))
            {
                return(true);
            }

            if (entityName.Equals(ApprovalAccountHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ApprovalDealingHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ApprovalMemberHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ApprovalOrderHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ApprovalPreRiskHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ApprovalSystemHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(SessionHistoryMove.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ContractNoticeDateHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(BrokerOrderHist.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(SystemMessage.EntityName()))
            {
                return(true);
            }
            #endregion

            #region Action
            if (entityName.Equals(SymbolSettlementPriceAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(TradingDealAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(SystemConfigAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(SymbolCQGAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(OrderTransactionAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ManualPriceAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ForexRateAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(BaseSymbolCQGAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(BaseSymbolAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ConnectionAction.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(ForexRateInternalAction.EntityName()))
            {
                return(true);
            }
            #endregion

            //Các bảng khác
            if (entityName.Equals(ActionLog.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(StateChangedAccount.EntityName()))
            {
                return(true);
            }
            if (entityName.Equals(YdspLme.EntityName()))
            {
                return(true);
            }

            return(false);
        }