/// <summary> /// 建立 DAL 物件 instance /// </summary> public virtual bool OfCreateDao(string ps_comp, string ps_TargetTable, string ps_TargetColumn, string ps_ViewTable, bool pGenNonSelectCommand = true) { string ls_connstr; ls_connstr = ConfigurationManager.AppSettings[ps_comp]; if (ls_connstr == "") { return(false); } if (m_ap_dao == null) { m_ap_dao = YR.ERP.DAL.DALFactory.CreateDAO(ls_connstr); } if (m_ap_dao == null) { return(false); } if (OfCreateCommand(m_ap_dao, ps_TargetTable, ps_TargetColumn, ps_ViewTable, pGenNonSelectCommand) == false) { return(false); } return(true); }
/// <summary> /// 建立 DAL 物件 instance /// </summary> public virtual bool OfCreateDao(string ps_TargetTable, string ps_TargetColumn, string ps_ViewTable) { if (m_ap_dao == null) { m_ap_dao = YR.ERP.DAL.DALFactory.CreateDAO(); } if (m_ap_dao == null) { return(false); } if (OfCreateCommand(m_ap_dao, ps_TargetTable, ps_TargetColumn, ps_ViewTable) == false) { return(false); } return(true); }
/// <summary> /// 建立 DAL 物件 instance /// </summary> public virtual bool OfCreateDao(System.Data.Common.DbConnection pConnection, string ps_TargetTable, string ps_TargetColumn, string ps_ViewTable, bool pGenNonSelectCommand = true) { if (m_ap_dao == null) { m_ap_dao = YR.ERP.DAL.DALFactory.CreateDAO(pConnection); } if (m_ap_dao == null) { return(false); } if (OfCreateCommand(m_ap_dao, ps_TargetTable, ps_TargetColumn, ps_ViewTable, pGenNonSelectCommand) == false) { return(false); } return(true); }
public BLLMSSQLBase(YR.ERP.DAL.ERP_MSSQLDAL pdao) { AP_DAO = pdao; }