ADO.NET Data Services (codename Astoria)

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Feature: Payroll and HR Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
Co- location Mass Market Managed Hosting ISV Hosting.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
 Bertrand Le Roy Senior Program Manager Lead Microsoft Corporation PC32.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Connect with life Connect with life
NEXT: Overview – Sharing skills & code.
Project “Astoria” first announced in Mix 2007 Shared early prototypes, got tons of feedback Now we’re talking about the real deal Production quality bits,
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
 Mike Flasko Program Manager Microsoft Corporation TL07.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
Ian Ellison-Taylor General Manager Microsoft Corporation PC27.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”
Why data services? Common challenges when creating rich web applications Creating rich web applications with data services Future scenarios & roadmap.

customer.
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
Microsoft TechDays Сергей Звездин
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Microsoft TechDayshttp:// Сергей Звездин

2 ADO.NET Data Services for the Web Mike Flasko Program Manager, Microsoft “Project Astoria”
Building and Consuming REST-based Data Services for the Web
Возможности Excel 2010, о которых следует знать
Сетевое взаимодействие
Title of Presentation 11/22/2018 3:34 PM
Baseline: How Are We Doing Now?
Title of Presentation 12/2/2018 3:48 PM
1/3/2019 1:21 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Silverlight Debugging
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Создание приложения с помощью App Studio
Ward Bell VP Technology IdeaBlade, Inc.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Title of Presentation 5/12/ :53 PM
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
5/24/2019 6:44 PM 1/8/18 Bell #10 In a world governed by the gods, is there any room for human will? Do human choices make a difference? EXPLAIN © 2007.
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Title of Presentation 7/24/2019 8:53 PM
Presentation transcript:

ADO.NET Data Services (codename Astoria) Сергей Звездин sergey.zwezdin@gmail.com http://blogs.gotdotnet.ru/personal/sergun/ © 2007 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.

Silverlight Applications Данные в Web HTML + Javascript DLL + XAML Mashup UI Data (XML, etc) Data (XML, etc) Data (XML, etc) Data Feeds AJAX Applications Silverlight Applications Mashups & Rich Clients Online Services

DataAcces: Проблемы? Выразительный, легкий в обслуживании контракт сервиса Эффективное использование сети, минимизация сетевых задержек, … Безопасность данных Конкурирующие операции «А что если мои данные…» Доступны только через хранимые процедуры Хранятся не в базе данных

SOAP/WS-* vs. REST Два подхода к построению веб-сервисов Represintational State Transfer (REST) Взаимодополняющие подходы SOAP/WS-* - ориентация на операции REST – ориентация на данные

Доступ через SOAP/WS-* Client SOAP Service POST /ServiceAccess/MyService1.svc Host: www.servicehost.com SOAPAction: GetBalance … <soap:Envelope xmlns:soap= … <soap:Body> <GetBalance xmlns= … <Account>2</Account> </GetBalance> </soap:Body> </soap:Envelope> Data

Доступ через REST Data REST Client REST Service GET www.servicehost.com/MyService1.svc Data

SOAP/WS-* vs. REST SOAP/WS-* REST Protocol for invoking operations HTTP Transport protocol HTTP, TCP, … Language for describing interfaces WSDL - Conveying security tokens WS-Security HTTP, SSL Acquiring security tokens WS-Trust Establishing a security context WS-SecureConversation SSL

ADO.NET Data Services – платформа для построения сервисов в стиле REST

RESTful интерфейс HTTP Унифицированный синтаксис URL Данные представляются как HTTP-ресурсы; HTTP-методы управляют данными Кэширование, прокси, аутентификация, … Унифицированный синтаксис URL Каждая часть информации адресуется Предсказуемый и гибкий синтаксис URL Различные представления Content-Type Atom*, JSON, Plain XML

Семантика HTTP-операций HTTP verbs GET – получить ресурс POST – создать ресурс PUT – изменить ресурс DELETE – удалить ресурс

Адресация Адресация наборов данных и одиночных сущностей Опции представления Entity-set /Bookmarks Single entity /Bookmarks(123) Member access /Bookmarks(123)/Name Link traversal /Bookmarks(123)/Tags Deep access /Bookmarks(123)/Tags('abc')/Name Raw value access /Bookmarks(123)/Names/$value Sorting /Bookmarks?$orderby=Name Filtering /Bookmarks?$filter=Created gt '2007-05-07' Paging /Bookmarks?$top=10&$skip=30 Inline expansion /Bookmarks?$expand=Tags

Источники данных LINQ to SQL ADO.NET Entity Framework Custom provider IQueryable IUpdatable Данные HTTP ADO.NET Data Service LINQ to SQL ADO.NET Entity Framework Custom provider Источники данных: DB, Web Service, feed, file, ...

ADO.NET Data Services overview Демонстрация ADO.NET Data Services overview

RESTful интерфейс Сервисные операции Пользовательские точки входа: http://..../MyService1.svc?Name=‘Patrick’ Отложенная загрузка связанных сущностей Конструкция $expand помещает в граф данных необходимый ресурс в рамках одного запроса Метод LoadProperty позволяет загрузить необходимую сущность после получения результатов запроса Фильтрация и разбиение на страницы Передача только необходимых данных (обработка данных на стороне сервера) Batching Передача операций create/update/delete на сервис в пакетном режиме и поддержка семантики «все или ничего»

Контроль доступа Видимость Аутентификация Перехватчики (interceptors) Управление видимостью на уровне контейнера объектов Опции Read, Query, Write Аутентификация Интеграция с hosting-средой ASP.NET, WCF, Live ID или пользовательские схемы аутентификации Перехватчики (interceptors) Выполняются перед GET/PUT/POST/DELETE Включают валидацию и пользовательские политики безопасности на уровне строк данных

Демонстрация Data security

Конкурентный доступ Optimistic concurrency GET /Customers(1) Optimistic concurrency Интеграция с существующей HTTP инфраструктурой 200, ETag:xx PUT/Customers(1) If-Match: xx 201, ETag:xx 412, ETag:xx OR

Что дальше… Клиенты не всегда подключены к серверу… Задача построения инфраструктуры offline-клиента Сохранение данных сервиса локально (SQL Server Compact) Синхронизация данных с сервисом при подключении к сервису Прозрачность с точки зрения построения клиента «Astoria Offline»

Ресурсы http://astoria.mslivelabs.com/ http://blogs.msdn.com/astoriateam http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=1430&SiteID=1

9/18/2018 6:24 AM © 2007 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. © 2007 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.