Alessandro Del Sole
Microsoft Visual Basic MVP
http://community.visual-basic.it/Alessandro
[email protected]
Service Operations
Demo
Interceptors
Query Interceptors
Change Interceptors
Demo
Estensioni WCF specifiche per i Data
Services
Implementazione business-logic
personalizzata lato server (es. validazione)
Si implementano come metodi .NET
Si richiamano in query string
Restituiscono:
IQueryable(Of T)/IEnumerable(Of T)
Tipi primitivi .NET
Nessun tipo (Sub in VB, Void in C#)
Metodi decorati con attributi WebGet
(richiesta Http GET) o WebInvoke (richiesta
Http POST)
Necessaria assegnazione permessi
Fruizione via Http (direttamente nell’URI)
Metodi che intercettano le richieste Http
Il developer decide come gestire tali richieste
Due tipologie
Query interceptors (richieste in lettura)
Change interceptors (richieste CRUD)
Esposti dall’istanza della classe
DataService
Query interceptors: decorati con l’attributo
<QueryInterceptor>
Restituiscono un Expression Tree
Change interceptors: decorati con l’attributo
<ChangeInterceptor>
Non restituisce alcun tipo (Sub in VB/Void in
C#)
ADO.NET Data Services
http://msdn.microsoft.com/enus/library/cc668792.aspx
http://blogs.msdn.com/astoriateam/default.aspx
http://msdn.microsoft.com/enus/library/cc668788.aspx
LINQ
http://msdn.microsoft.com/enus/vbasic/aa904594.aspx
http://www.fag.it/scheda.aspx?ID=28759
© 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.
Scarica

ADO.NET Data Services Service operations e Interceptors