SlideShare a Scribd company logo
1 of 15
   1   
           Anney




04/10/12
   What’s temp table?
   What’s memory table?




04/10/12                   2
04/10/12   3
04/10/12   4
   DBML 無法辨識 temp table schema
   建議:可使用 Dapper, WebMatrix
     o Download SqlMapper.cs
     o using Dapper namespace
     o QueryMultiple, Read<T>()




04/10/12                          5
04/10/12   6
04/10/12   7
   因為 PRC 回傳的是 IEnumerable ,使用 ToList() 就可以
    取回在 SP 中的欄位




04/10/12                                   8
   ISingleResult<PRC_Name>




04/10/12                      9
04/10/12   10
04/10/12   11
04/10/12   12
04/10/12   13
   解法:讓 PRC 回傳 IMutilpleResult
   不建議使用,因為需要手動新增 PartialClass 的方式達
    成
   http://weblogs.asp.net/scottgu/archive/2007/08/16/linq-to-sq
    .aspx




04/10/12                                                  14
 15 



04/10/12

More Related Content

Viewers also liked

Как все построено в Dropbox
Как все построено в DropboxКак все построено в Dropbox
Как все построено в DropboxNatalia Sakhnova
 
Data pemakaian kabel , dll.
Data pemakaian kabel , dll.Data pemakaian kabel , dll.
Data pemakaian kabel , dll.Reza Hardy
 
Direcciones web y videos
Direcciones web y videosDirecciones web y videos
Direcciones web y videosVirginiaFrias
 
TypeScript by Howard
TypeScript by HowardTypeScript by Howard
TypeScript by HowardLearningTech
 
A Estética
A EstéticaA Estética
A Estéticamrfn
 
Nocion de estado(diferencias y semejanzas)
Nocion de estado(diferencias y semejanzas)Nocion de estado(diferencias y semejanzas)
Nocion de estado(diferencias y semejanzas)Moly16
 

Viewers also liked (10)

Pr 070410
Pr 070410Pr 070410
Pr 070410
 
El sistema solar
El sistema solar El sistema solar
El sistema solar
 
Как все построено в Dropbox
Как все построено в DropboxКак все построено в Dropbox
Как все построено в Dropbox
 
Data pemakaian kabel , dll.
Data pemakaian kabel , dll.Data pemakaian kabel , dll.
Data pemakaian kabel , dll.
 
Img0109 a
Img0109 aImg0109 a
Img0109 a
 
Direcciones web y videos
Direcciones web y videosDirecciones web y videos
Direcciones web y videos
 
TypeScript by Howard
TypeScript by HowardTypeScript by Howard
TypeScript by Howard
 
A Estética
A EstéticaA Estética
A Estética
 
Embriologia bucal
Embriologia bucalEmbriologia bucal
Embriologia bucal
 
Nocion de estado(diferencias y semejanzas)
Nocion de estado(diferencias y semejanzas)Nocion de estado(diferencias y semejanzas)
Nocion de estado(diferencias y semejanzas)
 

More from LearningTech

More from LearningTech (20)

vim
vimvim
vim
 
PostCss
PostCssPostCss
PostCss
 
ReactJs
ReactJsReactJs
ReactJs
 
Docker
DockerDocker
Docker
 
Semantic ui
Semantic uiSemantic ui
Semantic ui
 
node.js errors
node.js errorsnode.js errors
node.js errors
 
Process control nodejs
Process control nodejsProcess control nodejs
Process control nodejs
 
Expression tree
Expression treeExpression tree
Expression tree
 
SQL 效能調校
SQL 效能調校SQL 效能調校
SQL 效能調校
 
flexbox report
flexbox reportflexbox report
flexbox report
 
Vic weekly learning_20160504
Vic weekly learning_20160504Vic weekly learning_20160504
Vic weekly learning_20160504
 
Reflection &amp; activator
Reflection &amp; activatorReflection &amp; activator
Reflection &amp; activator
 
Peggy markdown
Peggy markdownPeggy markdown
Peggy markdown
 
Node child process
Node child processNode child process
Node child process
 
20160415ken.lee
20160415ken.lee20160415ken.lee
20160415ken.lee
 
Peggy elasticsearch應用
Peggy elasticsearch應用Peggy elasticsearch應用
Peggy elasticsearch應用
 
Expression tree
Expression treeExpression tree
Expression tree
 
Vic weekly learning_20160325
Vic weekly learning_20160325Vic weekly learning_20160325
Vic weekly learning_20160325
 
D3js learning tips
D3js learning tipsD3js learning tips
D3js learning tips
 
git command
git commandgit command
git command
 

prc return_multiple_result_indbml

  • 1. 1  Anney 04/10/12
  • 2. What’s temp table?  What’s memory table? 04/10/12 2
  • 5. DBML 無法辨識 temp table schema  建議:可使用 Dapper, WebMatrix o Download SqlMapper.cs o using Dapper namespace o QueryMultiple, Read<T>() 04/10/12 5
  • 8. 因為 PRC 回傳的是 IEnumerable ,使用 ToList() 就可以 取回在 SP 中的欄位 04/10/12 8
  • 9. ISingleResult<PRC_Name> 04/10/12 9
  • 10. 04/10/12 10
  • 11. 04/10/12 11
  • 12. 04/10/12 12
  • 13. 04/10/12 13
  • 14. 解法:讓 PRC 回傳 IMutilpleResult  不建議使用,因為需要手動新增 PartialClass 的方式達 成  http://weblogs.asp.net/scottgu/archive/2007/08/16/linq-to-sq .aspx 04/10/12 14