コード例 #1
0
        public void setTier(NTier.Request.iBussinessTier oTier)
        {
            _Tier = oTier;

            oAssembly.appServerRootPath = ui.appServerRootPath;
            oAssembly.appName           = ui.appName;
            oAssembly.loadDll(xmlDoc);
        }
コード例 #2
0
        public clsBussinessTierFromXmlBase(clsAppServerBase appServerInfo)
        {
            _appServerInfo = appServerInfo;
            //_AppConfigFolderPath = appServerInfo.getAppConfigFolder();


            xDoc = getXmlDoc(appServerInfo.getAppConfigFilePath());

            var xNodeConnection = xDoc.SelectSingleNode("//appConfig/defaultConnectionString");

            string sConnectionString = xNodeConnection.InnerText;
            string sConnectionType   = xNodeConnection.Attributes["type"].Value;

            _adapter = adapter.utility.createAdapter(sConnectionType, sConnectionString);

            oAssembly.appServerRootPath = appServerInfo.appServerRootPath;
            oAssembly.appName           = appServerInfo.appName;
            oAssembly.loadDll(xDoc);
        }