WPH304. announcement LINQ to SQL LINQ to User Data.

Slides:



Advertisements
Similar presentations
WSV405. IPv6 Ready Logo Program
Advertisements

SIM201. Announcing… copyright chappellseminars.com some hosts comply; RST = closed no = response open some hosts comply; RST = closed no = response.
WSV304 Manual Deployment High cost Fully Automated Low cost.
OSP303. demo Status Bar Notification.
SIM Separate solution install paths can be taken, stand alone and SCOM integrated. Both require core AVIcode web apps and DB’s.
DBI331. Cube Measure Group Measure Partition Cube Dimension Dimension Attribute Relationship Hierarchy Level Cube Attribute Cube Hierarchy Measure.
SIM346. General information about the software application.
SIM205. (On-Premises) Storage Servers Networking O/S Middleware Virtualization Data Applications Runtime You manage Infrastructure (as a Service)
DEV207. SSDT Database Services Database Services Analysis Services Reporting Services Integration Services.
DEV314. Entity Data Model demo Entity Data Model.
DEV202 Before I get started... …is too expensive. …is too complex. …requires a server.
WSV314. MAP 5.5 Internet ExplorerWindows 7 Software Usage Tracking Heterogeneous Server & Database Inventory Windows Server 2008 R2 Hyper-V SQL Server.
Andy Wigley APPA New Data Features in “Mango”: SQL Server Compact and User Data.
WCL309. Demo.
SIM329. Certificate Enrollment Without CEP/CES Certificate Authority Active Directory Client Workstations LDAP RPC/DCOM.
EXL302-R. Storage Management Balance mailbox size demands with available storage resources Reduce the proliferation of.PST files stored outside of IT.
WPH309. announcement General Information for Push and Tiles New Features.
EXL319. *Baseline for 80,000 user pool with 8 FEs and 1 BE Lync Server 2010 Capacity Calculator released.
WCL318. MAP 5.5 Internet ExplorerWindows 7 Software Usage Tracking Heterogeneous Server & Database Inventory Windows Server 2008 R2 Hyper-V SQL Server.
Khalid Siddiqui Senior Architect, Mobility Center of Excellence Microsoft Corporation SESSION CODE: WPH311.
WPH203 Content Choice Discoverability demo.
SIM 320. Contoso customer premises AD MS Online Directory Sync Identity Services Provisioning platform Provisioning platform Lync Online Lync Online.
SIM314 Introduction Transport Layer Summary Network Layer.
demo.
COS303. Azure Enterprise CLOUDENTERPRISE Data Synchronization SQL Azure Data Sync Application-layer Connectivity & Messaging Service Bus Security.
WPH202. announcement Dublin Singapore Redmond Sao Paulo Three million+ messages per day internally 74,589 Mobile devices syncing daily 550 sites.
DBI329. video.
DBI326. PhraseGoal “Data Mining”Inform actionable decisions “Machine Learning”Determine best performing algorithm.
DPR302.
2.
DEV331. class Tweet : TimelineItem {…} class DirectMessage : TimelineItem {…} class Notification : TimelineItem {…} … TimelineItem[] items = new.
WCL304.
DPR306. Process and tools Individuals and interactions over Following a plan Responding to change over Source: Comprehensive.
DPR305. Controller Model View Client Business Objects Server Business Objects Data.
OSP402 Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub.
DEV211. The simplest way to create business applications for the desktop and the cloud.
OSP325 ScenarioUse Directory Synchronization? Initial on-boarding/bulk Provisioning of users only* No Identity FederationYes Long-term.
WPH310. Free Phone! Windows Phone 7 as a Game Platform Free Tools to Build Great Games The Game Loop Input on Windows Phone 7 Building a Game with Your.
DBI325. Monitoring Analytics Support will extend to Analysis Services in the Denali release.
WPH301. announcement Overview Roadmap for Business Risk Management (security model, application security, security management) Deploying Windows Phone.
DPR301 demo Executable Requirements.
WPH303 announcement demo.
VIR326. Dell Compellent always puts the right data in the right place at the right time at the right cost. That’s Fluid Data.
DEV351.
DEV332. Required Slide Speakers, please list the Breakout Sessions, Interactive Discussions, Labs, Demo Stations and Certification Exam that.
WSV207. Cluster Public Cloud Servers On-Premises Servers Desktop Workstations Application Logic.
DEV321. demo Rule: Any slide about UX must be charcoal gray or black.
#TEDEV342 A A B B I currently deploy via FTP directly to my host. My deployment is manual because I need to set permissions on the target server.
Learn more: Download SCM: Join the TechNet Wiki community:
OSP-302. DescriptionUri All lists on a site.../_vti_bin/ListData.svc All Items in a named list.../_vti_bin/ListData.svc/MyList 2nd Item in the list.../_vti_bin/ListData.svc/MyList(2)
DEV348. demo Valid HTML5 Syntax demo.
SIM323. Active Directory ? ? ? ? ? ? ? ? ?
Cloud-Ready Data Services. cloud data services.
WCL402. “While it’s true that Windows ___ sports some impressive technical features, I believe that Windows owes most of its success to the third-
WPH307. announcement Architect in the Microsoft Mobility Center of Excellence Created the Microsoft Mobile Line of Business Accelerator for Windows Mobile.
WSV303. I live here... DC DNS DHCP WDS Clients DC DNS WDS/DHCP DC/DNS.
DEV354. Describe your data Create screens for common tasks Author business logic Customize screen layouts Define custom queries Create custom Silverlight.
SIM End users Web servers Application servers Data servers ? How do I know I have a problem? How do I isolate the problem? How do I diagnose.
OSP209 Input Touch Hardware buttons Media Digital media capture & playback Media library access Data Isolated Storage LINQ (Objects and XML).NET.
WCL301. demo Basic Custom XML-file.
About Me AUTHENTICATION Identity Provider.

DBI407. Oracle 10g CDF SSAS Cube Builder NAS SSAS Query Servers HW NLB Partition 1 Partition 2 Partition N Partition 1 Partition.
DEV353. Required Slide Speakers, please list the Breakout Sessions, Interactive Discussions, Labs, Demo Stations and Certification.
COS307. demo Required Slide Track PMs will supply the content for this slide, which will be inserted during the final scrub. Website:
Integrating Security Roles into Microsoft Silverlight Applications
TechEd /15/2019 8:08 PM © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks.
Integrating with Windows 8 Experiences
Building Business Applications in LightSwitch
Sayed Ibrahim Hashimi Program Manager Microsoft Corporation
Presentation transcript:

WPH304

announcement

LINQ to SQL LINQ to User Data

LINQ Objects XML SQL User Data OData

Windows Phone Cloud service

Filter

demo

Database Support

Application Settings file App Creates/manages files and settings Application files App Data Folder Package Manager App Root Folder WP7 Isolated Storage APIs Install Database file Database file (r/o) Creates root folder sandboxed to App

Architecture.Call System.Linq.Queryable.Select(.Call System.Linq.Queryable.Where(.Constant(Table(Wines)), '(.Lambda #Lambda1)), '(.Lambda #Lambda2)).Lambda #Lambda1(db.Wines $w) { $w.Country == “USA" }.Lambda #Lambda2(w.Country $w) { $w.Name } var query = from w in db.Wines where w.Country == “USA" select w.Name; select Name from Wines where Country = “USA” Custom data context App objects Identity management Change tracking Update processing Object materialization Core ADO.NET (System.Data) SQLCE ADO.NET Provider (System.Data.SqlServerCe)

Design time Run time Database upgrade Varietals Wines Vineyards WineMakers

Database Creation: Example

Queries: Examples // Create the database form data context, using a connection string DataContext db = new WineDataContext("isostore:/wineDB.sdf"); // Find all wines currently at home, ordered by date acquired var q = from w in db.Wines where w.Varietal.Name == “Shiraz” && w.IsAtHome == true orderby w.DateAcquired select w;

NameLittle Penguin VarietalPinot Noir AtHome False NameLittle Penguin VarietalPinot Noir AtHome True NameLittle Penguin VarietalPinot Noir AtHome False Your app code NameYellow Tail VarietalPinot Noir AtHome True

Inserts/Updates/Deletes Wine newWine = new Wine { WineID = “1768", Name = “Windows Phone Syrah", Description = “Bold and spicy" }; db.Wines.InsertOnSubmit(newWine); db.SubmitChanges(); Wine wine = (from w in db.Wines where w.WineID == “1768" select w).First(); wine.Description = “Hints of plum and melon"; db.SubmitChanges(); Insert Update

Inserts/Updates/Deletes Delete var vineyardsToDelete = from Vineyards v in db.Vineyards where v.Country == “Australia” select v; db.Vineyards.DeleteAllOnSubmit (vineyardsToDelete); db.SubmitChanges(); Foreign key constraint will cause exception here if Wines associated with the Vineyards are not deleted first

Inserts/Updates/Deletes var vineyardsToDelete = from Vineyards v in db.Vineyards where v.Country == “Australia" select v; foreach (Vineyards v in vineyardsToDelete) { db.Wines.DeleteAllOnSubmit(v.Wines); } db.Vineyards.DeleteAllOnSubmit(vineyardsToDelete); db.SubmitChanges();

Database Schema Upgrades WineDataContext wineDC = new WineDataContext(App.WineDBConnectionString); DatabaseSchemaUpdater dsu = wineDC.CreateDatabaseSchemaUpdater(); if (dsu.DatabaseSchemaVersion == 1) { dsu.AddColumn ("BottleType"); dsu.DatabaseSchemaVersion = 2; dsu.Execute(); }

demo

User Data

AddressChooserTask private AddressChooserTask addressChooserTask; // Constructor public MainPage() { this.addressChooserTask = new AddressChooserTask(); this.addressChooserTask.Completed += new EventHandler ( addressChooserTask_Completed); } private void addressChooserTask_Completed(object sender, AddressResult e) { if (null == e.Error && TaskResult.OK == e.TaskResult) {... = e.DisplayName;... = e.Address; }

Contact name and picture Other contact dataAppointments/events Windows Live SocialYES Windows Live Rolodex (user created and SIM import) YES n/a Exchange accounts (corporate plus Google, etc.) YES Operator Address BooksYES n/a FacebookYESNO Other networks in the People Hub (e.g., Twitter) NO

Contacts: Hello, World! Contacts contacts = new Contacts(); contacts.SearchCompleted += new EventHandler ((sender, e) => {... = e.Results; }); // E.g. search for all contacts contacts.SearchAsync(string.Empty, FilterKind.None, null); filter expression (not a regex) Filter kind: name, , phone or pinned to start) state // E.g. search for all contacts with display name matching "ja" contacts.SearchAsync("ja", FilterKind.DisplayName, null);

Appointments: Hello, World! Appointments appointments = new Appointments(); appointments.SearchCompleted += new EventHandler ((sender, e) => {... = e.Results; }); // E.g. get next appointment (up to 1 week away) appointments.SearchAsync(DateTime.Now, DateTime.Now + TimeSpan.FromDays(7), 1, null); start date and time Maximum items to return state end date and time

demo

THANK YOU!

QUESTIONS? How do you enter? How am I selected? During each Windows Phone session the moderator will post a question; the first person to correctly answer the question and is called on by the moderator will potentially win * Restrictions apply please see contest rules for eligibility and restrictions. Contest rules are displayed in the Technical Learning Center at the WPH info counter

Visit the Windows Phone Technical Learning Center for demos and more… Business IT resources blogs.technet.com/b/ windows_phone_4_it_pros Business IT resources blogs.technet.com/b/ windows_phone_4_it_pros Developer resources create.msdn.com Developer resources create.msdn.com Experience Windows Phone 7 on-line and get a backstage pass Experience Windows Phone 7 on-line and get a backstage pass

Q&A

Scan the Tag to evaluate this session now on myTechEd Mobile

Resources Sessions On-Demand & CommunityMicrosoft Certification & Training Resources Resources for IT ProfessionalsResources for Developers Connect. Share. Discuss.