コード例 #1
0
        protected static SqlConnection getDb0Connection()
        {
            string        connectionstring = LogicCenter.GetDB0ConnectionString(CommWebSetup.DB0_CodeString); //取得連線字串
            SqlConnection connection       = new SqlConnection(connectionstring);

            return(connection);
        }
コード例 #2
0
        public static ApplicationDbContext Create()
        {
            string connstr = LogicCenter.GetDB0ConnectionString(CommSetup.CommWebSetup.DB0_CodeString);

            return(new ApplicationDbContext(connstr));
        }