Microsoft Visual Studio 2008
Keywords: ADO.NET
優點
優點
Entity Framework
- 可以看出資料庫關聯性, 不必另繪 Entity Relationship Diagram
- 透過IntelliSense可以看到Table下的欄位, 不必邊寫程式, 邊查資料結構.
缺點
缺點
把簡單的事弄得很複雜
Microsoft 好像不喜歡用標準的 SQL
Data Service Framework
Data Service Framework
- 需要 Visual Studio 2008 SP1 以上
- .NET Framework 3.5 SP1 以上
- 單純資料供應服務
- 資料傳遞格式: ATOM, JSON
- 一個 web service 透過 URI 下不同參數讀取不同資料例如:
- http://..../Staffs('001') 讀取 primary key 為 '001'
- http://..../Staffs?$=3 傳回前3筆
- http://localhost:2362/svcISAC.svc/Staffs('001')/StaffTH
- ADO.NET Data Services Viewer Tool
- LINQ to ADO.NET Data Services
- 使用 DataServiceContext 新增、刪除、修改