MangoHost
Sapphire Crystal
Pages
(移至...)
HOME
▼
Pages
(移至...)
首頁
▼
Pages
(移至...)
HOME
▼
2014年5月1日 星期四
[MVC] ViewModel 串聯多個資料表
以下三種方法:
*手動建立ViewModel
*建立SQL的View,並且關聯好,用ADO精靈自動產生Model
*在controller層,將另一個model存在viewbag傳到view層
http://kevintsengtw.blogspot.tw/2012/12/aspnet-mvc-viewmodel.html#.U13dsfmSylA
沒有留言:
張貼留言
‹
›
首頁
查看網路版
沒有留言:
張貼留言