Windows phone 7, WCF, and SQL Azure

12
By Dean Willson Presented to fwPASS on 5/24/2011 WINDOWS PHONE 7, WCF, AND SQL AZURE

description

Presentation to a chapter of Professional Association for SQL Server users demo'ing creating a Windows Phone 7 app connectiong to a SQL Azure database using a WCF (Windows Communication Foundation) service.

Transcript of Windows phone 7, WCF, and SQL Azure

Page 1: Windows phone 7, WCF, and SQL Azure

By Dean Willson

Presented to fwPASS on 5/24/2011

WINDOWS PHONE 7, WCF, AND SQL AZURE

Page 2: Windows phone 7, WCF, and SQL Azure

AGENDA

Register as a WP7 developer in the App Marketplace

SQL Azure database – Azure management

WCF Service/Entity Framework

WP7 client

Putting it all together

Page 3: Windows phone 7, WCF, and SQL Azure
Page 4: Windows phone 7, WCF, and SQL Azure

MARKETPLACE

$99/year developer account

Azure/ SQL Azure pay to play or MSDN subscription

3-5 day certification process for submittal

1-5 day certification process for update

Paid apps can’t switch to free after approval

Page 5: Windows phone 7, WCF, and SQL Azure

SQL AZURE

SQL Azure Migration wizard http://sqlazuremw.codeplex.com/

SSMS (limited functionality)

SQL Azure Management Console

Page 6: Windows phone 7, WCF, and SQL Azure

WCF

WCF .net version 3.5

Silverlight 3 supports basicHTTPBinding (not wsHTTPBinding)

Updating ServiceReference (contract changes) is a pain

add Aspnetdb provider config

Page 7: Windows phone 7, WCF, and SQL Azure

WP7 CLIENT

No direct database calls (web services, WCF, REST)

Asynchronous calls (performance)

Page 8: Windows phone 7, WCF, and SQL Azure
Page 9: Windows phone 7, WCF, and SQL Azure

login page.Net Membership provider

Page 10: Windows phone 7, WCF, and SQL Azure

gymnast list page

Click icon to add picture

Binding ObservableCollection list<Gymnast>

Page 11: Windows phone 7, WCF, and SQL Azure

RESOURCES

http://cloud.dzone.com/news/how-use-wcf-services-access-0

http://breathingtech.com/2011/how-to-use-wcf-services-to-access-sql-azure-database-from-windows-phone-7-app-part-2/

http://www.danrigsby.com/blog/index.php/2008/03/18/async-operations-in-wcf-event-based-model/

http://blah.winsmarts.com/2008-4-Writing_the_WCF_Hello_World_App.aspx

http://robtiffany.com/windows-phone-7/windows-phone-7-line-of-business-app-dev-consuming-an-azure-wcf-rest-json-service

http://www.africangeek.com/

http://www.c-sharpcorner.com/UploadFile/UrmimalaPal/1858/

http://www.jeffblankenburg.com/2009/07/07/day-7-using-wcf-web-services-with-silverlight-and-linq/