コード例 #1
0
ファイル: DataAccess.cs プロジェクト: codestk/WebTemplate
        public DataAccess()
        {
            if (Config.ConnectionString() == null)
            {
                throw new System.Exception("Connection Error");
            }

            var connecStionstring = Config.ConnectionString();
            Db = new DataBaseSql(connecStionstring);
        }
コード例 #2
0
        public DataAccess()
        {
            //if (((ConfigurationManager.ConnectionStrings["CFireBird"] == null)))
            //{
            //    throw new System.Exception("Connection Error");
            //}

            if (Config.ConnectionString() == null)
            {
                throw new System.Exception("Connection Error");
            }

            //var connecStionstring = ConfigurationManager.ConnectionStrings["CFireBird"].ToString();
            ////DB_R2 = new DataBaseFireBird(connecStionstring);
            var connecStionstring = Config.ConnectionString();
            Db = new DataBaseSql(connecStionstring);
        }