dev301 vs2008 sp1 ado.net data servicefocus.it168.com/200809/msteched2008/ppt/ppt/dev301.pdf ·...

12

Upload: ngohanh

Post on 17-Mar-2018

269 views

Category:

Documents


6 download

TRANSCRIPT

VS2008 SP1新特性-玩转ADO.NET Data Service

课程编号:DEV301

主 要 内 容

没有数据服务的世界

数据服务要解决的问题

数据服务是什么?

如何构建数据服务

如何消费数据服务

演示

没有数据服务的世界

HTML + JavaScript

Data (XML, etc)

DLL + XAML

Data (XML, etc) Data (XML, etc)

Mashup UI

Data Feeds

AJAX 应用 Silverlight 应用

在线服务 Mashups

今天的服务是什么样?

Web Service (ASMX, WCF)

1) GetCustomer(int id)

2) GetCustomers()

3) GetCustomers(string orderBy)

4) GetCustomers(string orderBy, string sortDirection)

5) GetCustomers(string orderBy, string sortDirection,int offset, int count)

6) GetCustomers(string orderBy, string sortDirection,int offset, int count,string filter, string filterValue)

数据服务要解决的问题

以数据为中心CRUD(创建、读取、更新、删除)

分页

排序

筛选

RESTful

可扩展

数据服务是什么?

CLR Model

(IQueryable)

Entity DataModel

Custom Model

WCFService

LINQ To SQLModel

DataService<T>

归根结底:ADO.NET DataService是一个WCF Service

如何消费数据服务

DataServiceHTTP

DataModel

DataServiceContext

ObjectModel

服务器客户端

构建

CRUD

Interceptors

Query Option

过滤排序

属性值

分页Silverlight Client

Ajax Client

批量处理

自定义对象模型

Eager-Loading

JSON

WPF Client

疑问和解答

感谢您参与此会场!

您的意见与建议对我们非常重要。

请您填写反馈表。

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS,

IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.