摘要: 剛開始學MVC4,以下是一些基礎的學習筆記!完成效果像下面這樣,資料來源是既有的Database。1.Controllerpublic ActionResult Index() { SqlConnection DbErp = new SqlConnection(ErpString); //創建資料庫連線 SqlCommand cmd = new SqlCommand("select dep,name from dept",DbErp); //輸入SQL命令 DbErp.Open(); //開啟資料庫連線 ... 阅读全文
posted @ 2013-08-16 17:46 Ren.Auxo 阅读(864) 评论(0) 推荐(0) 编辑