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
訂閱:
張貼留言 (Atom)
Sapphire Crystal
3670 | : | 20 | : | 21 | : | 17 |
天 | 時 | 分 | 秒 | |||
MangoHost Copyright © 2009 Cookiez is Designed by Ipietoon for Free Blogger Template
0 意見:
張貼留言