prc return_multiple_result_indbml
TRANSCRIPT
Anney
112/05/02
1
What’s temp table? What’s memory table?
112/05/02 2
112/05/02 3
112/05/02 4
DBML 無法辨識 temp table schema 建議:可使用 Dapper, WebMatrix
o Download SqlMapper.cso using Dapper namespaceo QueryMultiple, Read<T>()
112/05/02 5
112/05/02 6
112/05/02 7
因為 PRC 回傳的是 IEnumerable ,使用 ToList() 就可以取回在 SP 中的欄位
112/05/02 8
ISingleResult<PRC_Name>
112/05/02 9
112/05/02 10
112/05/02 11
112/05/02 12
112/05/02 13
解法:讓 PRC 回傳 IMutilpleResult 不建議使用,因為需要手動新增 PartialClass 的方式達成 http://weblogs.asp.net/scottgu/archive/2007/08/16/linq-to-sql-part-6-retrieving-data-using-stored-procedures
.aspx
112/05/02 14
112/05/02
15